├── .gitattributes ├── .github └── workflows │ └── main.yml ├── .gitignore ├── COPYING.txt ├── README.md ├── addon ├── doc │ ├── ru │ │ └── readme.md │ └── zh_CN │ │ └── readme.md ├── globalPlugins │ └── bluetoothAudio.py ├── locale │ ├── bg │ │ └── LC_MESSAGES │ │ │ └── nvda.po │ ├── da │ │ └── LC_MESSAGES │ │ │ └── nvda.po │ ├── de │ │ └── LC_MESSAGES │ │ │ └── nvda.po │ ├── es │ │ └── LC_MESSAGES │ │ │ └── nvda.po │ ├── fi │ │ └── LC_MESSAGES │ │ │ └── nvda.po │ ├── fr │ │ └── LC_MESSAGES │ │ │ └── nvda.po │ ├── gl │ │ └── LC_MESSAGES │ │ │ └── nvda.po │ ├── he │ │ └── LC_MESSAGES │ │ │ └── nvda.po │ ├── hr │ │ └── LC_MESSAGES │ │ │ └── nvda.po │ ├── hu │ │ └── LC_MESSAGES │ │ │ └── nvda.po │ ├── it │ │ └── LC_MESSAGES │ │ │ └── nvda.po │ ├── pl │ │ └── LC_MESSAGES │ │ │ └── nvda.po │ ├── pt_BR │ │ └── LC_MESSAGES │ │ │ └── nvda.po │ ├── pt_PT │ │ └── LC_MESSAGES │ │ │ └── nvda.po │ ├── ro │ │ └── LC_MESSAGES │ │ │ └── nvda.po │ ├── ru │ │ └── LC_MESSAGES │ │ │ └── nvda.po │ ├── sk │ │ └── LC_MESSAGES │ │ │ └── nvda.po │ ├── sr │ │ └── LC_MESSAGES │ │ │ └── nvda.po │ ├── sv │ │ └── LC_MESSAGES │ │ │ └── nvda.po │ ├── tr │ │ └── LC_MESSAGES │ │ │ └── nvda.po │ ├── uk │ │ └── LC_MESSAGES │ │ │ └── nvda.po │ └── zh_CN │ │ └── LC_MESSAGES │ │ └── nvda.po └── sounds │ ├── 10khz.wav │ └── 20khz_sine_wave_fade_10sec.wav ├── buildVars.py ├── manifest-translated.ini.tpl ├── manifest.ini.tpl ├── msgfmt.exe ├── sconstruct ├── site_scons └── site_tools │ └── gettexttool │ ├── __init__.py │ └── __init__.pyc ├── style.css └── xgettext.exe /.gitattributes: -------------------------------------------------------------------------------- 1 | # Set default behaviour, in case users don't have core.autocrlf set. 2 | * text=auto 3 | 4 | # Try to ensure that po files in the repo does not include 5 | # source code line numbers. 6 | # Every person expected to commit po files should change their personal config file as described here: 7 | # https://mail.gnome.org/archives/kupfer-list/2010-June/msg00002.html 8 | *.po filter=cleanpo 9 | -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | name: CI 2 | on: 3 | push: 4 | branches: [master] 5 | tags: 6 | - '*' 7 | pull_request: 8 | branches: [master] 9 | workflow_dispatch: 10 | permissions: 11 | contents: write 12 | jobs: 13 | build: 14 | runs-on: windows-latest 15 | steps: 16 | - uses: actions/checkout@v3 17 | - uses: actions/setup-python@v4 18 | with: 19 | python-version: "3.10" 20 | - name: Install Dependencies 21 | run: pip install scons markdown 22 | - name: Run Scons 23 | run: scons 24 | - name: Create and Upload Release 25 | if: contains(github.ref, '/tags/') 26 | uses: softprops/action-gh-release@v1 27 | with: 28 | prerelease: ${{ endsWith(github.ref, '-dev') }} 29 | files: '*.nvda-addon' 30 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | addon/doc/*.css 2 | addon/doc/en/ 3 | *_docHandler.py 4 | *.html 5 | *.ini 6 | *.mo 7 | *.pot 8 | *.pyc 9 | /*.nvda-addon 10 | .sconsign.dblite 11 | -------------------------------------------------------------------------------- /COPYING.txt: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc. 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Library General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | 294 | Copyright (C) 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License 307 | along with this program; if not, write to the Free Software 308 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 309 | 310 | 311 | Also add information on how to contact you by electronic and paper mail. 312 | 313 | If the program is interactive, make it output a short notice like this 314 | when it starts in an interactive mode: 315 | 316 | Gnomovision version 69, Copyright (C) year name of author 317 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 318 | This is free software, and you are welcome to redistribute it 319 | under certain conditions; type `show c' for details. 320 | 321 | The hypothetical commands `show w' and `show c' should show the appropriate 322 | parts of the General Public License. Of course, the commands you use may 323 | be called something other than `show w' and `show c'; they could even be 324 | mouse-clicks or menu items--whatever suits your program. 325 | 326 | You should also get your employer (if you work as a programmer) or your 327 | school, if any, to sign a "copyright disclaimer" for the program, if 328 | necessary. Here is a sample; alter the names: 329 | 330 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 331 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 332 | 333 | , 1 April 1989 334 | Ty Coon, President of Vice 335 | 336 | This General Public License does not permit incorporating your program into 337 | proprietary programs. If your program is a subroutine library, you may 338 | consider it more useful to permit linking proprietary applications with the 339 | library. If this is what you want to do, use the GNU Library General 340 | Public License instead of this License. 341 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Notice 2 | 3 | Bluetooth Audio add-on has been resurrected in 2025. Now instead of playing silence or white noise it plays a high frequency (20 KHz) sine wave, that is inaudible to human ear, yet it tricks some bluetooth devices to not enter standby mode prematurely. 4 | 5 | # nvda-bluetooth-audio 6 | Bluetooth Audio is an NVDA add-on that improves sound quality when working with bluetooth or RF headphones or speakers. 7 | 8 | Most bluetooth devices enter standby mode after a few seconds of inactivity. That means that when NVDA starts speaking again, the first split second of sound will be lost. Bluetooth Audio add-on prevents bluetooth devices from entering standby mode by constantly playing a high frequency sound, that is inaudible to a human ear. 9 | 10 | Warning: using Bluetooth Audio add-on might reduce battery life of your bluetooth device. 11 | 12 | ## Keystrokes 13 | Bluetooth Audio add-on doesn't have any keystrokes. It works as long as it is installed. 14 | ## Source code 15 | Source code is available at . 16 | 17 | -------------------------------------------------------------------------------- /addon/doc/ru/readme.md: -------------------------------------------------------------------------------- 1 | # nvda-bluetooth-audio 2 | Bluetooth Audio - это дополнение NVDA, которое улучшает качество звука при работе с Bluetooth /радиочастотными наушниками или колонками. 3 | 4 | 5 | Большинство bluetooth-устройств переходят в режим ожидания после нескольких секунд бездействия. Это означает, что когда NVDA снова начнёт говорить, первая доля секунды звука будет потеряна. Дополнение Bluetooth Audio предотвращает переход устройств Bluetooth в режим ожидания, постоянно воспроизводя тихий звук, неслышимый для человеческого уха. 6 | 7 | В качестве опции Bluetooth Audio может воспроизводить вместо тишины белый шум. Это может быть полезно для тестирования или для того, чтобы убедиться, что Bluetooth Audio работает так, как ожидается. Однако того же уровня улучшения качества звука можно добиться, воспроизводя тишину. 8 | 9 | Предупреждение: использование дополнения Bluetooth Audio может сократить время автономной работы вашего устройства Bluetooth. 10 | ## Скачать 11 | * Текущая стабильная версия (только Python 3, требуется NVDA 2019.3 или более поздняя версия): [BluetoothAudio](https://github.com/mltony/nvda-bluetooth-audio/releases/latest/download/bluetoothaudio.nvda-addon) 12 | * Последняя версия Python 2 (совместима с NVDA 2019.2 и ранее): [v1.0](https://github.com/mltony/nvda-bluetooth-audio/releases/download/v1.0/bluetoothaudio-1.0.nvda-addon) 13 | 14 | ## Сочетания клавиш 15 | Дополнение Bluetooth Audio не имеет никаких клавиш. Оно работает до тех пор, пока оно установлено. 16 | ## Исходный код 17 | Исходный код доступен по адресу . 18 | 19 | -------------------------------------------------------------------------------- /addon/doc/zh_CN/readme.md: -------------------------------------------------------------------------------- 1 | # nvda-蓝牙-音频 2 | 蓝牙音频是 NVDA 的插件,可在使用蓝牙耳机或蓝牙音箱时改进 NVDA 的语音效果。 3 | 4 | 5 | 大多数蓝牙设备在不工作几秒后会进入待机模式。这意味着当 NVDA 再次朗读时,语音的前几个字将会丢失。蓝牙音频插件通过不间断播放人耳听不见的无声音频防止蓝牙设备进入待机模式。 6 | 7 | 蓝牙音频插件可以选择播放白噪声而不是静音音频。这有助于测试或确定蓝牙音频插件是否按预期工作。但是,播放无声音频可以达到同样的改进效果。 8 | 9 | 注意:使用蓝牙音频插件可能会缩短蓝牙设备的电池续航时间。 10 | 11 | ## 下载 12 | * 当前稳定版(仅限 Python 3,需要 NVDA 2019.3 或更高版本):[BluetoothAudio](https://github.com/mltony/nvda-bluetooth-audio/releases/latest/download/bluetoothaudio.nvda-addon) 13 | * 最后一个 Python 2 版本(兼容 NVDA 2019.2 及之前版本):[v1.0](https://github.com/mltony/nvda-bluetooth-audio/releases/download/v1.0/bluetoothaudio-1.0.nvda-addon) 14 | 15 | ## 按键 16 | 蓝牙音频插件没有任何快捷键。只要安装它就可以使用。 17 | 18 | ## 源代码 19 | 源代码可在 获取。 20 | -------------------------------------------------------------------------------- /addon/globalPlugins/bluetoothAudio.py: -------------------------------------------------------------------------------- 1 | # -*- coding: UTF-8 -*- 2 | #A part of the BluetoothAudio addon for NVDA 3 | #Copyright (C) 2018 Tony Malykh 4 | #This file is covered by the GNU General Public License. 5 | #See the file COPYING.txt for more details. 6 | 7 | import addonHandler 8 | import api 9 | import atexit 10 | import config 11 | import core 12 | from ctypes import create_string_buffer, byref 13 | import globalPluginHandler 14 | import gui 15 | from gui import nvdaControls 16 | from logHandler import log 17 | from NVDAHelper import generateBeep 18 | import nvwave 19 | import os 20 | import random 21 | from scriptHandler import script 22 | import speech 23 | import struct 24 | import sys 25 | from threading import Condition, Lock, Thread 26 | import time 27 | import tones 28 | import ui 29 | import wave 30 | import wx 31 | from gui.settingsDialogs import SettingsPanel 32 | 33 | debug = False 34 | if debug: 35 | f = open("C:\\Users\\tony\\drp\\1.txt", "w", encoding='utf-8') 36 | debugLock = Lock() 37 | def mylog(s): 38 | with debugLock: 39 | print(str(s), file=f) 40 | f.flush() 41 | else: 42 | def mylog(s): 43 | pass 44 | 45 | 46 | def initConfiguration(): 47 | confspec = { 48 | "keepAlive" : "integer( default=60, min=0)", 49 | "whiteNoiseVolume" : "integer( default=0, min=0, max=100)", 50 | } 51 | config.conf.spec["bluetoothaudio"] = confspec 52 | 53 | addonHandler.initTranslation() 54 | initConfiguration() 55 | 56 | def getConfig(key): 57 | value = config.conf["bluetoothaudio"][key] 58 | return value 59 | 60 | 61 | 62 | def resetCounter(reopen=False): 63 | global beepThread 64 | t = time.time() 65 | t += getConfig("keepAlive") 66 | beepThread.play(t, reopen) 67 | 68 | def getSoundsPath(): 69 | globalPluginPath = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) 70 | #addonPath = os.path.split(globalPluginPath)[0] 71 | addonPath = globalPluginPath 72 | soundsPath = os.path.join(addonPath, "sounds") 73 | return soundsPath 74 | 75 | def generateBeepBuf(whiteNoiseVolume): 76 | fileName = os.path.join( 77 | getSoundsPath(), 78 | # sox -n -b 16 --rate 44100 output.wav synth 10 pinknoise 79 | #"white_noise_10s.wav" 80 | # sox -n -b 16 --rate 44100 output.wav synth 10 sine 22000 81 | #"high_freq_sine.wav" 82 | # sox -n -b 16 --rate 44100 output.wav synth 10 sine 22000 fade t 0.01 10 0.01 83 | #"high_freq_sine_fade.wav" 84 | # sox -n -b 16 --rate 44100 high_freq_sine_wave_fade2.wav synth 2 sine 22000 fade t 0.1 2 0.1 85 | # "high_freq_sine_wave_fade2.wav" 86 | # sox -n -b 16 --rate 44100 20khz_sine_wave_fade_10sec.wav synth 10 sine 20000 fade t 0.1 10 0.1 87 | "20khz_sine_wave_fade_10sec.wav" 88 | ) 89 | 90 | f = wave.open(fileName,"r") 91 | if f is None: raise RuntimeError() 92 | buf = f.readframes(f.getnframes()) 93 | #return buf, f.getframerate() 94 | bufSize = len(buf) 95 | n = bufSize//2 96 | unpacked = struct.unpack(f"<{n}h", buf) 97 | unpacked = list(unpacked) 98 | for i in range(n): 99 | unpacked[i] = int(unpacked[i] * whiteNoiseVolume/1000) 100 | 101 | packed = struct.pack(f"<{n}h", *unpacked) 102 | return packed, f.getframerate() 103 | 104 | 105 | 106 | 107 | class BeepThread(Thread): 108 | def __init__(self): 109 | super().__init__( 110 | name="Bluetooth Audio background beeper thread", 111 | daemon=True, 112 | ) 113 | self.lock = Lock() 114 | self.sleepCondition = Condition(self.lock) 115 | self.playing = False 116 | self.pauseTime = time.time() + 1e10 117 | self.initRequested = True 118 | self.shutdownRequested = False 119 | self.player = None 120 | self.timer = wx.PyTimer(self.lockAndInterrupt) 121 | self.preCounter = 0 122 | self.postCounter = 0 123 | 124 | 125 | def doInit(self): 126 | if self.player is not None: 127 | try: 128 | self.player.stop() 129 | except: 130 | pass 131 | self.buf, framerate = generateBeepBuf(getConfig('whiteNoiseVolume')) 132 | if False: 133 | from NVDAHelper import generateBeep 134 | length = 1000 135 | left = right = getConfig('whiteNoiseVolume') 136 | hz = 10 137 | bufSize = generateBeep(None, hz, length, left, right) 138 | self.buf = create_string_buffer(bufSize) 139 | generateBeep(self.buf, hz, length, left, right) 140 | 141 | outputDevice=config.conf["audio"]["outputDevice"] 142 | self.player = nvwave.WavePlayer( 143 | channels=1, 144 | samplesPerSec=int(tones.SAMPLE_RATE), 145 | bitsPerSample=16, 146 | outputDevice=outputDevice, 147 | wantDucking=False, 148 | purpose=nvwave.AudioPurpose.SOUNDS, 149 | ) 150 | 151 | def run(self): 152 | while True: 153 | with self.lock: 154 | self.preCounter += 1 155 | if self.shutdownRequested: 156 | return 157 | if self.initRequested: 158 | self.doInit() 159 | self.initRequested = False 160 | if time.time() >= self.pauseTime: 161 | self.playing = False 162 | self.sleepCondition.wait() 163 | else: 164 | self.playing = True 165 | self.postCounter += 1 166 | if self.playing: 167 | self.player.feed(self.buf) 168 | 169 | def lockAndInterrupt(self): 170 | with self.lock: 171 | self.interrupt() 172 | 173 | def interrupt(self): 174 | # This function is not 100% reliable. 175 | # For example, it might call player.stop() before the thread actually calls player.feed(). 176 | # In this case interrupt won't work. This can be fixed but this would make code much more complicated. 177 | # We rather decided to keep code simple. In the worst case white noise will be playing for extra 10 seconds. 178 | if self.playing: 179 | self.player.stop() 180 | else: 181 | self.sleepCondition.notifyAll() 182 | 183 | def play(self, untilWhen, reopen=False): 184 | with self.lock: 185 | self.pauseTime = untilWhen 186 | if reopen: 187 | self.initRequested = True 188 | self.timer.Stop() 189 | timerDuration = int(1 + 1000 * (untilWhen - time.time())) 190 | if timerDuration > 0: 191 | wx.CallAfter(self.timer.Start, timerDuration, wx.TIMER_ONE_SHOT) 192 | if timerDuration <= 0 or not self.playing or reopen: 193 | mylog("timerDuration <= 0") 194 | self.interrupt() 195 | 196 | def terminate(self): 197 | with self.lock: 198 | self.shutdownRequested = True 199 | self.interrupt() 200 | 201 | beepThread = BeepThread() 202 | beepThread.start() 203 | 204 | @atexit.register 205 | def cleanup(): 206 | beepThread.terminate() 207 | 208 | def interceptSpeech(): 209 | def makeInterceptFunc(targetFunc, hookFunc): 210 | def wrapperFunc(*args, **kwargs): 211 | hookFunc() 212 | return targetFunc(*args, **kwargs) 213 | return wrapperFunc 214 | speech.speech.speak = makeInterceptFunc(speech.speech.speak, resetCounter) 215 | tones.initialize = makeInterceptFunc(tones.initialize, lambda: resetCounter(reopen=True)) 216 | 217 | interceptSpeech() 218 | 219 | class SettingsDialog(SettingsPanel): 220 | # Translators: Title for the settings dialog 221 | title = _("BluetoothAudio") 222 | 223 | def makeSettings(self, settingsSizer): 224 | sHelper = gui.guiHelper.BoxSizerHelper(self, sizer=settingsSizer) 225 | # Translators: Label for Stand by time edit box 226 | labelText = _("Stand by time in seconds") 227 | self.keepAliveEdit = sHelper.addLabeledControl( 228 | labelText, nvdaControls.SelectOnFocusSpinCtrl, 229 | min=1, max=100000, 230 | initial=getConfig("keepAlive"), 231 | ) 232 | # White noise volume slider 233 | label = _("Volume of white noise") 234 | self.whiteNoiseVolumeSlider = sHelper.addLabeledControl(label, wx.Slider, minValue=0,maxValue=100) 235 | self.whiteNoiseVolumeSlider.SetValue(getConfig("whiteNoiseVolume")) 236 | 237 | def isValid(self): 238 | try: 239 | int(self.keepAliveEdit.Value) 240 | return True 241 | except: 242 | ui.message("Invalid number format") 243 | self.keepAliveEdit.SetFocus() 244 | return False 245 | 246 | def onSave(self): 247 | keepAlive = int(self.keepAliveEdit.Value) 248 | config.conf["bluetoothaudio"]["keepAlive"] = keepAlive 249 | config.conf["bluetoothaudio"]["whiteNoiseVolume"] = self.whiteNoiseVolumeSlider.Value 250 | resetCounter(reopen=True) 251 | 252 | class GlobalPlugin(globalPluginHandler.GlobalPlugin): 253 | scriptCategory = _("BluetoothAudio") 254 | 255 | def __init__(self, *args, **kwargs): 256 | super(GlobalPlugin, self).__init__(*args, **kwargs) 257 | self.createMenu() 258 | 259 | def createMenu(self): 260 | gui.settingsDialogs.NVDASettingsDialog.categoryClasses.append(SettingsDialog) 261 | 262 | def terminate(self): 263 | gui.settingsDialogs.NVDASettingsDialog.categoryClasses.remove(SettingsDialog) 264 | cleanup() 265 | 266 | -------------------------------------------------------------------------------- /addon/locale/bg/LC_MESSAGES/nvda.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the bluetoothaudio package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: bluetoothaudio 1.0\n" 9 | "Report-Msgid-Bugs-To: nvda-translations@groups.io\n" 10 | "POT-Creation-Date: 2018-11-23 02:05+1000\n" 11 | "PO-Revision-Date: 2024-05-03 16:42+0300\n" 12 | "Last-Translator: Kostadin Kolev \n" 13 | "Language-Team: \n" 14 | "Language: bg\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "X-Generator: Poedit 3.4.2\n" 19 | 20 | #. Add-on summary, usually the user visible name of the addon. 21 | #. Translators: Summary for this add-on to be shown on installation and add-on information. 22 | msgid "BluetoothAudio" 23 | msgstr "Bluetooth Аудио (BluetoothAudio)" 24 | 25 | #. Add-on description 26 | #. Translators: Long description to be shown for this add-on on add-on information from add-ons manager 27 | msgid "" 28 | "Bluetooth Audio is an NVDA add-on that improves sound quality when working " 29 | "with bluetooth headphones or speakers." 30 | msgstr "" 31 | "\"Bluetooth Аудио\" е добавка за NVDA, която подобрява качеството на звука " 32 | "при работа със слушалки или високоговорители, свързани посредством " 33 | "Bluetooth." 34 | -------------------------------------------------------------------------------- /addon/locale/da/LC_MESSAGES/nvda.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the bluetoothaudio package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: bluetoothaudio 1.0\n" 9 | "Report-Msgid-Bugs-To: nvda-translations@groups.io\n" 10 | "POT-Creation-Date: 2018-11-23 02:05+1000\n" 11 | "PO-Revision-Date: 2019-01-14 12:37+0100\n" 12 | "Language: da\n" 13 | "MIME-Version: 1.0\n" 14 | "Content-Type: text/plain; charset=UTF-8\n" 15 | "Content-Transfer-Encoding: 8bit\n" 16 | "Last-Translator: Nicolai Svendsen \n" 17 | "Language-Team: Dansk NVDA \n" 18 | "X-Generator: Poedit 2.2\n" 19 | 20 | #. Add-on summary, usually the user visible name of the addon. 21 | #. Translators: Summary for this add-on to be shown on installation and add-on information. 22 | msgid "BluetoothAudio" 23 | msgstr "BluetoothAudio" 24 | 25 | #. Add-on description 26 | #. Translators: Long description to be shown for this add-on on add-on information from add-ons manager 27 | msgid "" 28 | "Bluetooth Audio is an NVDA add-on that improves sound quality when working " 29 | "with bluetooth headphones or speakers." 30 | msgstr "" 31 | "Bluetooth Audio er en tilføjelse til NVDA, der forbedrer lydkvaliteten, når " 32 | "du arbejder med Bluetooth-hovedtelefoner eller højttalere." 33 | -------------------------------------------------------------------------------- /addon/locale/de/LC_MESSAGES/nvda.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the bluetoothaudio package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: bluetoothaudio 1.0\n" 9 | "Report-Msgid-Bugs-To: nvda-translations@groups.io\n" 10 | "POT-Creation-Date: 2018-11-23 02:05+1000\n" 11 | "PO-Revision-Date: 2018-11-29 17:51+0100\n" 12 | "Language: de\n" 13 | "MIME-Version: 1.0\n" 14 | "Content-Type: text/plain; charset=UTF-8\n" 15 | "Content-Transfer-Encoding: 8bit\n" 16 | "Last-Translator: Karl Eick \n" 17 | "Language-Team: \n" 18 | "X-Generator: Poedit 2.2\n" 19 | 20 | #. Add-on summary, usually the user visible name of the addon. 21 | #. Translators: Summary for this add-on to be shown on installation and add-on information. 22 | msgid "BluetoothAudio" 23 | msgstr "BluetoothAudio" 24 | 25 | #. Add-on description 26 | #. Translators: Long description to be shown for this add-on on add-on information from add-ons manager 27 | msgid "" 28 | "Bluetooth Audio is an NVDA add-on that improves sound quality when working " 29 | "with bluetooth headphones or speakers." 30 | msgstr "" 31 | "Bluetooth Audio ist eine Erweiterung, die die Soundqualität von " 32 | "Lautsprechern oder kopfhöhrern in Verbindung mit NVDA verbessert." 33 | -------------------------------------------------------------------------------- /addon/locale/es/LC_MESSAGES/nvda.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the bluetoothaudio package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: bluetoothaudio 1.0\n" 9 | "Report-Msgid-Bugs-To: nvda-translations@groups.io\n" 10 | "POT-Creation-Date: 2018-11-23 02:05+1000\n" 11 | "PO-Revision-Date: 2018-11-22 17:25+0100\n" 12 | "Language: es\n" 13 | "MIME-Version: 1.0\n" 14 | "Content-Type: text/plain; charset=UTF-8\n" 15 | "Content-Transfer-Encoding: 8bit\n" 16 | "Last-Translator: José Manuel Delicado \n" 17 | "Language-Team: \n" 18 | "X-Generator: Poedit 2.2\n" 19 | 20 | #. Add-on summary, usually the user visible name of the addon. 21 | #. Translators: Summary for this add-on to be shown on installation and add-on information. 22 | msgid "BluetoothAudio" 23 | msgstr "BluetoothAudio" 24 | 25 | #. Add-on description 26 | #. Translators: Long description to be shown for this add-on on add-on information from add-ons manager 27 | msgid "" 28 | "Bluetooth Audio is an NVDA add-on that improves sound quality when working " 29 | "with bluetooth headphones or speakers." 30 | msgstr "" 31 | "Bluetooth Audio es un complemento de NVDA que mejora la calidad de sonido " 32 | "al trabajar con auriculares o altavoces Bluetooth." 33 | -------------------------------------------------------------------------------- /addon/locale/fi/LC_MESSAGES/nvda.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the bluetoothaudio package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: bluetoothaudio\n" 9 | "Report-Msgid-Bugs-To: nvda-translations@groups.io\n" 10 | "POT-Creation-Date: 2018-11-23 02:05+1000\n" 11 | "PO-Revision-Date: 2018-11-30 08:07+0200\n" 12 | "Last-Translator: Jani Kinnunen \n" 13 | "Language-Team: Jani Kinnunen \n" 14 | "Language: fi\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "X-Generator: Poedit 1.6.11\n" 19 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 20 | 21 | #. Add-on summary, usually the user visible name of the addon. 22 | #. Translators: Summary for this add-on to be shown on installation and add-on information. 23 | msgid "BluetoothAudio" 24 | msgstr "BluetoothAudio" 25 | 26 | #. Add-on description 27 | #. Translators: Long description to be shown for this add-on on add-on information from add-ons manager 28 | msgid "" 29 | "Bluetooth Audio is an NVDA add-on that improves sound quality when working " 30 | "with bluetooth headphones or speakers." 31 | msgstr "" 32 | "Bluetooth Audio on lisäosa, joka parantaa äänenlaatua bluetooth-kuulokkeita " 33 | "tai -kaiuttimia käytettäessä." 34 | -------------------------------------------------------------------------------- /addon/locale/fr/LC_MESSAGES/nvda.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the bluetoothaudio package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: bluetoothaudio 1.4\n" 9 | "Report-Msgid-Bugs-To: 'nvda-translations@groups.io'\n" 10 | "POT-Creation-Date: 2022-01-06 21:26+0100\n" 11 | "PO-Revision-Date: 2022-01-06 21:28+0100\n" 12 | "Last-Translator: Bachir BENANOU \n" 13 | "Language-Team: Corentin Bacqué-Cazenave \n" 14 | "Language: fr\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Plural-Forms: nplurals=2; plural=(n > 1);\n" 19 | "X-Generator: Poedit 3.0.1\n" 20 | 21 | #. Translators: Title for the settings dialog 22 | #. Add-on summary, usually the user visible name of the addon. 23 | #. Translators: Summary for this add-on to be shown on installation and add-on information. 24 | #: addon\GlobalPlugins\bluetoothAudio.py:196 25 | #: addon\GlobalPlugins\bluetoothAudio.py:228 buildVars.py:17 26 | msgid "BluetoothAudio" 27 | msgstr "BluetoothAudio" 28 | 29 | #. Translators: Label for Stand by time edit box 30 | #: addon\GlobalPlugins\bluetoothAudio.py:201 31 | msgid "Stand by time in seconds" 32 | msgstr "Temps avant mise en veille en secondes" 33 | 34 | #. White noise volume slider 35 | #: addon\GlobalPlugins\bluetoothAudio.py:208 36 | msgid "Volume of white noise" 37 | msgstr "Volume du bruit blanc" 38 | 39 | #. Add-on description 40 | #. Translators: Long description to be shown for this add-on on add-on information from add-ons manager 41 | #: buildVars.py:20 42 | msgid "" 43 | "Bluetooth Audio is an NVDA add-on that improves sound quality when working " 44 | "with bluetooth headphones or speakers." 45 | msgstr "" 46 | "Bluetooth Audio est une extension de NVDA qui améliore la qualité du son " 47 | "quand on travaille avec un casque ou des haut-parleurs bluetooth." 48 | -------------------------------------------------------------------------------- /addon/locale/gl/LC_MESSAGES/nvda.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the bluetoothaudio package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: bluetoothaudio 1.0\n" 9 | "Report-Msgid-Bugs-To: nvda-translations@groups.io\n" 10 | "POT-Creation-Date: 2018-11-23 02:05+1000\n" 11 | "PO-Revision-Date: 2018-11-25 13:55+0100\n" 12 | "Language: gl\n" 13 | "MIME-Version: 1.0\n" 14 | "Content-Type: text/plain; charset=UTF-8\n" 15 | "Content-Transfer-Encoding: 8bit\n" 16 | "Last-Translator: Iván Novegil \n" 17 | "Language-Team: \n" 18 | "X-Generator: Poedit 2.2\n" 19 | 20 | #. Add-on summary, usually the user visible name of the addon. 21 | #. Translators: Summary for this add-on to be shown on installation and add-on information. 22 | msgid "BluetoothAudio" 23 | msgstr "BluetoothAudio" 24 | 25 | #. Add-on description 26 | #. Translators: Long description to be shown for this add-on on add-on information from add-ons manager 27 | msgid "" 28 | "Bluetooth Audio is an NVDA add-on that improves sound quality when working " 29 | "with bluetooth headphones or speakers." 30 | msgstr "" 31 | "Bluetooth Audio é un complemento para NVDA que mellora a calidade de son ao " 32 | "traballar con auriculares ou altofalantes bluetooth." 33 | -------------------------------------------------------------------------------- /addon/locale/he/LC_MESSAGES/nvda.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the bluetoothaudio package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: bluetoothaudio 1.0\n" 9 | "Report-Msgid-Bugs-To: nvda-translations@groups.io\n" 10 | "POT-Creation-Date: 2018-11-23 02:05+1000\n" 11 | "PO-Revision-Date: 2018-12-07 01:02+0200\n" 12 | "Last-Translator: shmuel naaman \n" 13 | "Language-Team: Shmuel Naaman \n" 14 | "Language: he\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "X-Generator: Poedit 1.6.10\n" 19 | 20 | #. Add-on summary, usually the user visible name of the addon. 21 | #. Translators: Summary for this add-on to be shown on installation and add-on information. 22 | msgid "BluetoothAudio" 23 | msgstr "BluetoothAudio" 24 | 25 | #. Add-on description 26 | #. Translators: Long description to be shown for this add-on on add-on information from add-ons manager 27 | msgid "" 28 | "Bluetooth Audio is an NVDA add-on that improves sound quality when working " 29 | "with bluetooth headphones or speakers." 30 | msgstr "" 31 | "BluetoothAudio הינו תוסף nvda המשפר את איכות הקול בעבודה עם אוזניות והתקני " 32 | "קול מבוססי בלו טוס " 33 | -------------------------------------------------------------------------------- /addon/locale/hr/LC_MESSAGES/nvda.po: -------------------------------------------------------------------------------- 1 | # Hrvatska lokalizacija za NVDA. 2 | # Copyright (C) 2006-2019 NVDA contributors 3 | # This file is distributed under the same license as the virtualRevision package. 4 | # Zvonimir Stanečić , 2018. 5 | # Milo Ivir , 2019. 6 | # 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: BluetoothAudio 1.0\n" 10 | "Report-Msgid-Bugs-To: nvda-translations@groups.io\n" 11 | "POT-Creation-Date: 2018-11-23 02:05+1000\n" 12 | "PO-Revision-Date: 2019-11-15 23:34+0100\n" 13 | "Last-Translator: Milo Ivir \n" 14 | "Language: hr\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "X-Generator: Poedit 2.2.4\n" 19 | "Language-Team: \n" 20 | "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" 21 | "%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n" 22 | 23 | #. Add-on summary, usually the user visible name of the addon. 24 | #. Translators: Summary for this add-on to be shown on installation and add-on information. 25 | msgid "BluetoothAudio" 26 | msgstr "Bluetooth zvuk" 27 | 28 | #. Add-on description 29 | #. Translators: Long description to be shown for this add-on on add-on information from add-ons manager 30 | msgid "" 31 | "Bluetooth Audio is an NVDA add-on that improves sound quality when working " 32 | "with bluetooth headphones or speakers." 33 | msgstr "" 34 | "Bluetooth zvuk je NVDA dodatak koji poboljšava kakvoću zvuka prilikom " 35 | "korištenja bluetooth slušalica ili zvučnika." 36 | -------------------------------------------------------------------------------- /addon/locale/hu/LC_MESSAGES/nvda.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the bluetoothaudio package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: bluetoothaudio 1.0\n" 9 | "Report-Msgid-Bugs-To: nvda-translations@groups.io\n" 10 | "POT-Creation-Date: 2018-11-23 02:05+1000\n" 11 | "PO-Revision-Date: 2020-07-27 20:27+0100\n" 12 | "Language: hu\n" 13 | "MIME-Version: 1.0\n" 14 | "Content-Type: text/plain; charset=UTF-8\n" 15 | "Content-Transfer-Encoding: 8bit\n" 16 | "Last-Translator: \n" 17 | "Language-Team: \n" 18 | "X-Generator: Poedit 1.6.10\n" 19 | 20 | #. Add-on summary, usually the user visible name of the addon. 21 | #. Translators: Summary for this add-on to be shown on installation and add-on information. 22 | msgid "BluetoothAudio" 23 | msgstr "BluetoothAudio" 24 | 25 | #. Add-on description 26 | #. Translators: Long description to be shown for this add-on on add-on information from add-ons manager 27 | msgid "" 28 | "Bluetooth Audio is an NVDA add-on that improves sound quality when working " 29 | "with bluetooth headphones or speakers." 30 | msgstr "" 31 | "A Bluetooth Audio bővítmény segít javítani a hangminőséget Bluetooth " 32 | "fülhallgatók és hangszórók használata esetén." 33 | -------------------------------------------------------------------------------- /addon/locale/it/LC_MESSAGES/nvda.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the bluetoothaudio package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: bluetoothaudio 1.0\n" 9 | "Report-Msgid-Bugs-To: nvda-translations@groups.io\n" 10 | "POT-Creation-Date: 2018-11-23 02:05+1000\n" 11 | "PO-Revision-Date: 2018-12-13 11:12+0100\n" 12 | "Language: it\n" 13 | "MIME-Version: 1.0\n" 14 | "Content-Type: text/plain; charset=UTF-8\n" 15 | "Content-Transfer-Encoding: 8bit\n" 16 | "Last-Translator: Simone Dal Maso \n" 17 | "Language-Team: \n" 18 | "X-Generator: Poedit 1.8.7\n" 19 | 20 | #. Add-on summary, usually the user visible name of the addon. 21 | #. Translators: Summary for this add-on to be shown on installation and add-on information. 22 | msgid "BluetoothAudio" 23 | msgstr "BluetoothAudio" 24 | 25 | #. Add-on description 26 | #. Translators: Long description to be shown for this add-on on add-on information from add-ons manager 27 | msgid "" 28 | "Bluetooth Audio is an NVDA add-on that improves sound quality when working " 29 | "with bluetooth headphones or speakers." 30 | msgstr "" 31 | "Bluetooth Audio è un componente aggiuntivo che migliora la qualità del " 32 | "suono quando si utilizzano delle cuffie o degli altoparlanti Bluetooth." 33 | -------------------------------------------------------------------------------- /addon/locale/pl/LC_MESSAGES/nvda.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the bluetoothaudio package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: bluetoothaudio 1.0\n" 9 | "Report-Msgid-Bugs-To: nvda-translations@groups.io\n" 10 | "POT-Creation-Date: 2018-11-23 02:05+1000\n" 11 | "PO-Revision-Date: 2019-04-01 15:26+0200\n" 12 | "Language: pl\n" 13 | "MIME-Version: 1.0\n" 14 | "Content-Type: text/plain; charset=UTF-8\n" 15 | "Content-Transfer-Encoding: 8bit\n" 16 | "Last-Translator: \n" 17 | "Language-Team: \n" 18 | "X-Generator: Poedit 2.2.1\n" 19 | 20 | #. Add-on summary, usually the user visible name of the addon. 21 | #. Translators: Summary for this add-on to be shown on installation and add-on information. 22 | msgid "BluetoothAudio" 23 | msgstr "BluetoothAudio" 24 | 25 | #. Add-on description 26 | #. Translators: Long description to be shown for this add-on on add-on information from add-ons manager 27 | msgid "" 28 | "Bluetooth Audio is an NVDA add-on that improves sound quality when working " 29 | "with bluetooth headphones or speakers." 30 | msgstr "" 31 | "Bluetooth Audio poprawia jakość dźwięku w czasie korzystania z urządzeń " 32 | "bluetooth, takich jak słuchawki lub głośniki." 33 | -------------------------------------------------------------------------------- /addon/locale/pt_BR/LC_MESSAGES/nvda.po: -------------------------------------------------------------------------------- 1 | # Brazilian Portuguese translation of BluetoothAudio. 2 | # Copyright (C) 2020 NVDA Contributors. 3 | # This file is distributed under the same license as the NVDA package. 4 | # Cleverson Casarin Uliana , 2020. 5 | # Tiago Melo Casal , 2020. 6 | # 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: BluetoothAudio\n" 10 | "Report-Msgid-Bugs-To: nvda-translations@groups.io\n" 11 | "POT-Creation-Date: 2020-01-03 02:05+1000\n" 12 | "PO-Revision-Date: 2020-03-09 21:26-0300\n" 13 | "Last-Translator: Tiago Melo Casal \n" 14 | "Language-Team: NVDA Brazilian Portuguese translation team (Equipe de " 15 | "tradução do NVDA para Português Brasileiro) \n" 16 | "Language: pt_BR\n" 17 | "MIME-Version: 1.0\n" 18 | "Content-Type: text/plain; charset=UTF-8\n" 19 | "Content-Transfer-Encoding: 8bit\n" 20 | "X-Generator: Poedit 1.6.11\n" 21 | 22 | #. Add-on summary, usually the user visible name of the addon. 23 | #. Translators: Summary for this add-on to be shown on installation and add-on information. 24 | msgid "BluetoothAudio" 25 | msgstr "Áudio Bluetooth" 26 | 27 | #. Add-on description 28 | #. Translators: Long description to be shown for this add-on on add-on information from add-ons manager 29 | msgid "" 30 | "Bluetooth Audio is an NVDA add-on that improves sound quality when working " 31 | "with bluetooth headphones or speakers." 32 | msgstr "" 33 | "O Áudio Bluetooth é um complemento para NVDA que melhora a qualidade do som " 34 | "ao trabalhar com fones de ouvido ou alto-falantes bluetooth." 35 | -------------------------------------------------------------------------------- /addon/locale/pt_PT/LC_MESSAGES/nvda.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the bluetoothaudio package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: bluetoothaudio 1.0\n" 9 | "Report-Msgid-Bugs-To: nvda-translations@groups.io\n" 10 | "POT-Creation-Date: 2018-11-23 02:05+1000\n" 11 | "PO-Revision-Date: 2023-07-27 23:16+0100\n" 12 | "Last-Translator: Ângelo Abrantes \n" 13 | "Language-Team: Equipa Portuguesa do NVDA \n" 15 | "Language: pt_PT\n" 16 | "MIME-Version: 1.0\n" 17 | "Content-Type: text/plain; charset=UTF-8\n" 18 | "Content-Transfer-Encoding: 8bit\n" 19 | "X-Generator: Poedit 3.3.2\n" 20 | "X-Poedit-SourceCharset: UTF-8\n" 21 | 22 | #. Add-on summary, usually the user visible name of the addon. 23 | #. Translators: Summary for this add-on to be shown on installation and add-on information. 24 | msgid "BluetoothAudio" 25 | msgstr "BluetoothAudio" 26 | 27 | #. Add-on description 28 | #. Translators: Long description to be shown for this add-on on add-on information from add-ons manager 29 | msgid "" 30 | "Bluetooth Audio is an NVDA add-on that improves sound quality when working " 31 | "with bluetooth headphones or speakers." 32 | msgstr "" 33 | "O Bluetooth Audio é um extra do NVDA que melhora a qualidade do som ao " 34 | "trabalhar com auscultadores ou altifalantes bluetooth." 35 | -------------------------------------------------------------------------------- /addon/locale/ro/LC_MESSAGES/nvda.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the bluetoothaudio package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: bluetoothaudio 1.0\n" 9 | "Report-Msgid-Bugs-To: nvda-translations@groups.io\n" 10 | "POT-Creation-Date: 2018-11-23 02:05+1000\n" 11 | "PO-Revision-Date: 2018-12-01 01:16+0100\n" 12 | "Language: ro\n" 13 | "MIME-Version: 1.0\n" 14 | "Content-Type: text/plain; charset=UTF-8\n" 15 | "Content-Transfer-Encoding: 8bit\n" 16 | "Last-Translator: Adriani \n" 17 | "Language-Team: \n" 18 | "X-Generator: Poedit 2.2\n" 19 | 20 | #. Add-on summary, usually the user visible name of the addon. 21 | #. Translators: Summary for this add-on to be shown on installation and add-on information. 22 | msgid "BluetoothAudio" 23 | msgstr "Bluetooth audio" 24 | 25 | #. Add-on description 26 | #. Translators: Long description to be shown for this add-on on add-on information from add-ons manager 27 | msgid "" 28 | "Bluetooth Audio is an NVDA add-on that improves sound quality when working " 29 | "with bluetooth headphones or speakers." 30 | msgstr "" 31 | "Bluetooth Audio este un supliment pentru NVDA care îmbunătățește calitatea " 32 | "sunetului atunci când lucrează cu căști bluetooth sau difuzoare." 33 | -------------------------------------------------------------------------------- /addon/locale/ru/LC_MESSAGES/nvda.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: 'bluetoothaudio' '1.4'\n" 9 | "Report-Msgid-Bugs-To: 'nvda-translations@groups.io'\n" 10 | "POT-Creation-Date: 2022-05-18 15:25+0400\n" 11 | "PO-Revision-Date: 2022-05-18 15:28+0400\n" 12 | "Last-Translator: Dragan Ratkovich\n" 13 | "Language-Team: \n" 14 | "Language: ru\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" 19 | "%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n" 20 | "X-Generator: Poedit 3.0.1\n" 21 | 22 | #. Translators: Title for the settings dialog 23 | #. Add-on summary, usually the user visible name of the addon. 24 | #. Translators: Summary for this add-on to be shown on installation and add-on information. 25 | #: addon\GlobalPlugins\bluetoothAudio.py:196 26 | #: addon\GlobalPlugins\bluetoothAudio.py:228 buildVars.py:17 27 | msgid "BluetoothAudio" 28 | msgstr "BluetoothAudio" 29 | 30 | #. Translators: Label for Stand by time edit box 31 | #: addon\GlobalPlugins\bluetoothAudio.py:201 32 | msgid "Stand by time in seconds" 33 | msgstr "Время ожидания в секундах" 34 | 35 | #. White noise volume slider 36 | #: addon\GlobalPlugins\bluetoothAudio.py:208 37 | msgid "Volume of white noise" 38 | msgstr "Громкость белого шума" 39 | 40 | #. Add-on description 41 | #. Translators: Long description to be shown for this add-on on add-on information from add-ons manager 42 | #: buildVars.py:20 43 | msgid "" 44 | "Bluetooth Audio is an NVDA add-on that improves sound quality when working " 45 | "with bluetooth headphones or speakers." 46 | msgstr "" 47 | "Bluetooth Audio — это дополнение для NVDA, улучшающее качество звука при " 48 | "работе с bluetooth-наушниками или колонками." 49 | -------------------------------------------------------------------------------- /addon/locale/sk/LC_MESSAGES/nvda.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the bluetoothaudio package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: bluetoothaudio 1.0\n" 9 | "Report-Msgid-Bugs-To: nvda-translations@groups.io\n" 10 | "POT-Creation-Date: 2018-11-23 02:05+1000\n" 11 | "PO-Revision-Date: 2020-01-07 17:39+0100\n" 12 | "Language: sk\n" 13 | "MIME-Version: 1.0\n" 14 | "Content-Type: text/plain; charset=UTF-8\n" 15 | "Content-Transfer-Encoding: 8bit\n" 16 | "Last-Translator: Ondrej Rosík \n" 17 | "Language-Team: \n" 18 | "X-Generator: Poedit 1.6.11\n" 19 | 20 | #. Add-on summary, usually the user visible name of the addon. 21 | #. Translators: Summary for this add-on to be shown on installation and add-on information. 22 | msgid "BluetoothAudio" 23 | msgstr "BluetoothAudio" 24 | 25 | #. Add-on description 26 | #. Translators: Long description to be shown for this add-on on add-on information from add-ons manager 27 | msgid "" 28 | "Bluetooth Audio is an NVDA add-on that improves sound quality when working " 29 | "with bluetooth headphones or speakers." 30 | msgstr "" 31 | "Doplnok Bluetooth audio zlepšuje kvalitu reči NVDA pri používaní Bluetooth " 32 | "slúchadiel alebo reproduktorov." 33 | -------------------------------------------------------------------------------- /addon/locale/sr/LC_MESSAGES/nvda.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the bluetoothaudio package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: bluetoothaudio 1.0\n" 9 | "Report-Msgid-Bugs-To: nvda-translations@groups.io\n" 10 | "POT-Creation-Date: 2018-11-23 02:05+1000\n" 11 | "PO-Revision-Date: 2018-11-29 22:11+0100\n" 12 | "Last-Translator: Nikola Jović \n" 13 | "Language-Team: LANGUAGE \n" 14 | "Language: sr\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "X-Generator: Poedit 1.6.10\n" 19 | 20 | #. Add-on summary, usually the user visible name of the addon. 21 | #. Translators: Summary for this add-on to be shown on installation and add-on information. 22 | msgid "BluetoothAudio" 23 | msgstr "BluetoothAudio" 24 | 25 | #. Add-on description 26 | #. Translators: Long description to be shown for this add-on on add-on information from add-ons manager 27 | msgid "" 28 | "Bluetooth Audio is an NVDA add-on that improves sound quality when working " 29 | "with bluetooth headphones or speakers." 30 | msgstr "" 31 | "Bluetooth audio je NVDA dodatak koji poboljšava kvalitet zvuka kada radite " 32 | "sa Bluetooth zvučnicima ili slušalicama." 33 | -------------------------------------------------------------------------------- /addon/locale/sv/LC_MESSAGES/nvda.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the bluetoothaudio package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: bluetoothaudio 1.3\n" 9 | "Report-Msgid-Bugs-To: nvda-translations@groups.io\n" 10 | "POT-Creation-Date: 2021-07-30 02:05+0000\n" 11 | "PO-Revision-Date: 2023-04-23 17:48+0200\n" 12 | "Language: sv\n" 13 | "MIME-Version: 1.0\n" 14 | "Content-Type: text/plain; charset=UTF-8\n" 15 | "Content-Transfer-Encoding: 8bit\n" 16 | "Last-Translator: \n" 17 | "Language-Team: \n" 18 | "X-Generator: Poedit 2.2.4\n" 19 | 20 | #. Add-on summary, usually the user visible name of the addon. 21 | #. Translators: Summary for this add-on to be shown on installation and add-on information. 22 | msgid "BluetoothAudio" 23 | msgstr "BluetoothAudio" 24 | 25 | #. Add-on description 26 | #. Translators: Long description to be shown for this add-on on add-on information from add-ons manager 27 | msgid "" 28 | "Bluetooth Audio is an NVDA add-on that improves sound quality when working " 29 | "with bluetooth headphones or speakers." 30 | msgstr "" 31 | "Bluetooth Audio är ett tillägg till NVDA som förbättrar ljudkvalitén när " 32 | "man använder bluetoothhörlurar eller bluetoothhögtalare." 33 | -------------------------------------------------------------------------------- /addon/locale/tr/LC_MESSAGES/nvda.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the bluetoothaudio package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: bluetoothaudio 1.0\n" 9 | "Report-Msgid-Bugs-To: nvda-translations@groups.io\n" 10 | "POT-Creation-Date: 2020-01-03 02:05+1000\n" 11 | "PO-Revision-Date: 2021-01-12 14:42+0300\n" 12 | "Language: tr\n" 13 | "MIME-Version: 1.0\n" 14 | "Content-Type: text/plain; charset=UTF-8\n" 15 | "Content-Transfer-Encoding: 8bit\n" 16 | "Last-Translator: \n" 17 | "Language-Team: \n" 18 | "X-Generator: Poedit 2.4.2\n" 19 | 20 | #. Add-on summary, usually the user visible name of the addon. 21 | #. Translators: Summary for this add-on to be shown on installation and add-on information. 22 | msgid "BluetoothAudio" 23 | msgstr "BluetoothAudio" 24 | 25 | #. Add-on description 26 | #. Translators: Long description to be shown for this add-on on add-on information from add-ons manager 27 | msgid "" 28 | "Bluetooth Audio is an NVDA add-on that improves sound quality when working " 29 | "with bluetooth headphones or speakers." 30 | msgstr "" 31 | "Bluetooth Audio, bluetooth kulaklık veya hoparlörlerle çalışırken ses " 32 | "kalitesini artıran bir NVDA eklentisidir." 33 | -------------------------------------------------------------------------------- /addon/locale/uk/LC_MESSAGES/nvda.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the bluetoothaudio package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: bluetoothaudio 1.0\n" 9 | "Report-Msgid-Bugs-To: nvda-translations@groups.io\n" 10 | "POT-Creation-Date: 2018-11-23 02:05+1000\n" 11 | "PO-Revision-Date: 2022-05-24 10:58+0300\n" 12 | "Last-Translator: Volodymyr Pyrih \n" 13 | "Language-Team: \n" 14 | "Language: uk\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "X-Generator: Poedit 3.0.1\n" 19 | 20 | #. Add-on summary, usually the user visible name of the addon. 21 | #. Translators: Summary for this add-on to be shown on installation and add-on information. 22 | msgid "BluetoothAudio" 23 | msgstr "BluetoothAudio" 24 | 25 | #. Add-on description 26 | #. Translators: Long description to be shown for this add-on on add-on information from add-ons manager 27 | msgid "" 28 | "Bluetooth Audio is an NVDA add-on that improves sound quality when working " 29 | "with bluetooth headphones or speakers." 30 | msgstr "" 31 | "Bluetooth Audio - це додаток для NVDA, який поліпшує якість звуку під час " 32 | "роботи з Bluetooth-навушниками або динаміками." 33 | -------------------------------------------------------------------------------- /addon/locale/zh_CN/LC_MESSAGES/nvda.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the bluetoothaudio package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: bluetoothaudio 1.0\n" 9 | "Report-Msgid-Bugs-To: 'nvda-translations@groups.io'\n" 10 | "POT-Creation-Date: 2022-01-08 16:52+0800\n" 11 | "PO-Revision-Date: 2022-01-08 17:22+0800\n" 12 | "Last-Translator: dingpengyu \n" 13 | "Language-Team: Cary-Rowen \n" 14 | "Language: zh_CN\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "X-Generator: Poedit 2.4.3\n" 19 | "Plural-Forms: nplurals=1; plural=0;\n" 20 | 21 | #. Translators: Title for the settings dialog 22 | #. Add-on summary, usually the user visible name of the addon. 23 | #. Translators: Summary for this add-on to be shown on installation and add-on information. 24 | #: addon\GlobalPlugins\bluetoothAudio.py:196 25 | #: addon\GlobalPlugins\bluetoothAudio.py:228 buildVars.py:17 26 | msgid "BluetoothAudio" 27 | msgstr "蓝牙音频" 28 | 29 | #. Translators: Label for Stand by time edit box 30 | #: addon\GlobalPlugins\bluetoothAudio.py:201 31 | msgid "Stand by time in seconds" 32 | msgstr "待机时间(以秒为单位)" 33 | 34 | #. White noise volume slider 35 | #: addon\GlobalPlugins\bluetoothAudio.py:208 36 | msgid "Volume of white noise" 37 | msgstr "白噪声音量" 38 | 39 | #. Add-on description 40 | #. Translators: Long description to be shown for this add-on on add-on information from add-ons manager 41 | #: buildVars.py:20 42 | msgid "" 43 | "Bluetooth Audio is an NVDA add-on that improves sound quality when working " 44 | "with bluetooth headphones or speakers." 45 | msgstr "" 46 | "蓝牙音频是 NVDA 的插件,可在使用蓝牙耳机或蓝牙音箱时改进 NVDA 的语音效果。" 47 | -------------------------------------------------------------------------------- /addon/sounds/10khz.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mltony/nvda-bluetooth-audio/9c8b16fbf56362b2ea3a8e08e04f0ac691e2fff0/addon/sounds/10khz.wav -------------------------------------------------------------------------------- /addon/sounds/20khz_sine_wave_fade_10sec.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mltony/nvda-bluetooth-audio/9c8b16fbf56362b2ea3a8e08e04f0ac691e2fff0/addon/sounds/20khz_sine_wave_fade_10sec.wav -------------------------------------------------------------------------------- /buildVars.py: -------------------------------------------------------------------------------- 1 | # -*- coding: UTF-8 -*- 2 | 3 | # Build customizations 4 | # Change this file instead of sconstruct or manifest files, whenever possible. 5 | 6 | # Full getext (please don't change) 7 | _ = lambda x : x 8 | 9 | # Add-on information variables 10 | addon_info = { 11 | # for previously unpublished addons, please follow the community guidelines at: 12 | # https://bitbucket.org/nvdaaddonteam/todo/raw/master/guideLines.txt 13 | # add-on Name, internal for nvda 14 | "addon_name" : "bluetoothaudio", 15 | # Add-on summary, usually the user visible name of the addon. 16 | # Translators: Summary for this add-on to be shown on installation and add-on information. 17 | "addon_summary" : _("BluetoothAudio"), 18 | # Add-on description 19 | # Translators: Long description to be shown for this add-on on add-on information from add-ons manager 20 | "addon_description" : _("""Bluetooth Audio is an NVDA add-on that improves sound quality when working with bluetooth headphones or speakers."""), 21 | # version 22 | "addon_version" : "1.6.1", 23 | # Author(s) 24 | "addon_author" : u"Tony Malykh ", 25 | # URL for the add-on documentation support 26 | "addon_url" : "https://github.com/mltony/nvda-bluetooth-audio", 27 | # Documentation file name 28 | "addon_docFileName" : "readme.html", 29 | # Minimum NVDA version supported (e.g. "2018.3.0", minor version is optional) 30 | "addon_minimumNVDAVersion" : "2025.1", 31 | # Last NVDA version supported/tested (e.g. "2018.4.0", ideally more recent than minimum version) 32 | "addon_lastTestedNVDAVersion" : "2025.1", 33 | # Add-on update channel (default is None, denoting stable releases, and for development releases, use "dev"; do not change unless you know what you are doing) 34 | "addon_updateChannel" : None, 35 | } 36 | 37 | 38 | import os.path 39 | 40 | # Define the python files that are the sources of your add-on. 41 | # You can use glob expressions here, they will be expanded. 42 | pythonSources = [os.path.join("addon", "GlobalPlugins", "*.py"), ] 43 | 44 | # Files that contain strings for translation. Usually your python sources 45 | i18nSources = pythonSources + ["buildVars.py"] 46 | 47 | # Files that will be ignored when building the nvda-addon file 48 | # Paths are relative to the addon directory, not to the root directory of your addon sources. 49 | excludedFiles = [] 50 | -------------------------------------------------------------------------------- /manifest-translated.ini.tpl: -------------------------------------------------------------------------------- 1 | summary = "{addon_summary}" 2 | description = """{addon_description}""" 3 | -------------------------------------------------------------------------------- /manifest.ini.tpl: -------------------------------------------------------------------------------- 1 | name = {addon_name} 2 | summary = "{addon_summary}" 3 | description = """{addon_description}""" 4 | author = "{addon_author}" 5 | url = {addon_url} 6 | version = {addon_version} 7 | docFileName = {addon_docFileName} 8 | minimumNVDAVersion = {addon_minimumNVDAVersion} 9 | lastTestedNVDAVersion = {addon_lastTestedNVDAVersion} 10 | updateChannel = {addon_updateChannel} 11 | -------------------------------------------------------------------------------- /msgfmt.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mltony/nvda-bluetooth-audio/9c8b16fbf56362b2ea3a8e08e04f0ac691e2fff0/msgfmt.exe -------------------------------------------------------------------------------- /sconstruct: -------------------------------------------------------------------------------- 1 | # NVDA add-on template SCONSTRUCT file 2 | #Copyright (C) 2012, 2014 Rui Batista 3 | #This file is covered by the GNU General Public License. 4 | #See the file COPYING.txt for more details. 5 | 6 | import codecs 7 | import gettext 8 | import os 9 | import os.path 10 | import zipfile 11 | import sys 12 | sys.dont_write_bytecode = True 13 | 14 | import buildVars 15 | 16 | def md2html(source, dest): 17 | import markdown 18 | lang = os.path.basename(os.path.dirname(source)).replace('_', '-') 19 | title="{addonSummary} {addonVersion}".format(addonSummary=buildVars.addon_info["addon_summary"], addonVersion=buildVars.addon_info["addon_version"]) 20 | headerDic = { 21 | "[[!meta title=\"": "# ", 22 | "\"]]": " #", 23 | } 24 | with codecs.open(source, "r", "utf-8") as f: 25 | mdText = f.read() 26 | for k, v in headerDic.items(): 27 | mdText = mdText.replace(k, v, 1) 28 | htmlText = markdown.markdown(mdText) 29 | with codecs.open(dest, "w", "utf-8") as f: 30 | f.write("\n" + 31 | "\n" + 33 | "\n" % (lang, lang) + 34 | "\n" + 35 | "\n" + 36 | "\n" + 37 | "%s\n" % title + 38 | "\n\n" 39 | ) 40 | f.write(htmlText) 41 | f.write("\n\n") 42 | 43 | def mdTool(env): 44 | mdAction=env.Action( 45 | lambda target,source,env: md2html(source[0].path, target[0].path), 46 | lambda target,source,env: 'Generating %s'%target[0], 47 | ) 48 | mdBuilder=env.Builder( 49 | action=mdAction, 50 | suffix='.html', 51 | src_suffix='.md', 52 | ) 53 | env['BUILDERS']['markdown']=mdBuilder 54 | 55 | vars = Variables() 56 | vars.Add("version", "The version of this build", buildVars.addon_info["addon_version"]) 57 | vars.Add(BoolVariable("dev", "Whether this is a daily development version", False)) 58 | vars.Add("channel", "Update channel for this build", buildVars.addon_info["addon_updateChannel"]) 59 | 60 | env = Environment(variables=vars, ENV=os.environ, tools=['gettexttool', mdTool]) 61 | env.Append(**buildVars.addon_info) 62 | 63 | if env["dev"]: 64 | import datetime 65 | buildDate = datetime.datetime.now() 66 | year, month, day = str(buildDate.year), str(buildDate.month), str(buildDate.day) 67 | env["addon_version"] = "".join([year, month.zfill(2), day.zfill(2), "-dev"]) 68 | env["channel"] = "dev" 69 | elif env["version"] is not None: 70 | env["addon_version"] = env["version"] 71 | if "channel" in env and env["channel"] is not None: 72 | env["addon_updateChannel"] = env["channel"] 73 | 74 | addonFile = env.File("${addon_name}-${addon_version}.nvda-addon") 75 | 76 | def addonGenerator(target, source, env, for_signature): 77 | action = env.Action(lambda target, source, env : createAddonBundleFromPath(source[0].abspath, target[0].abspath) and None, 78 | lambda target, source, env : "Generating Addon %s" % target[0]) 79 | return action 80 | 81 | def manifestGenerator(target, source, env, for_signature): 82 | action = env.Action(lambda target, source, env : generateManifest(source[0].abspath, target[0].abspath) and None, 83 | lambda target, source, env : "Generating manifest %s" % target[0]) 84 | return action 85 | 86 | def translatedManifestGenerator(target, source, env, for_signature): 87 | dir = os.path.abspath(os.path.join(os.path.dirname(str(source[0])), "..")) 88 | lang = os.path.basename(dir) 89 | action = env.Action(lambda target, source, env : generateTranslatedManifest(source[1].abspath, lang, target[0].abspath) and None, 90 | lambda target, source, env : "Generating translated manifest %s" % target[0]) 91 | return action 92 | 93 | env['BUILDERS']['NVDAAddon'] = Builder(generator=addonGenerator) 94 | env['BUILDERS']['NVDAManifest'] = Builder(generator=manifestGenerator) 95 | env['BUILDERS']['NVDATranslatedManifest'] = Builder(generator=translatedManifestGenerator) 96 | 97 | def createAddonHelp(dir): 98 | docsDir = os.path.join(dir, "doc") 99 | if os.path.isfile("style.css"): 100 | cssPath = os.path.join(docsDir, "style.css") 101 | cssTarget = env.Command(cssPath, "style.css", Copy("$TARGET", "$SOURCE")) 102 | env.Depends(addon, cssTarget) 103 | if os.path.isfile("readme.md"): 104 | readmePath = os.path.join(docsDir, "en", "readme.md") 105 | readmeTarget = env.Command(readmePath, "readme.md", Copy("$TARGET", "$SOURCE")) 106 | env.Depends(addon, readmeTarget) 107 | 108 | def createAddonBundleFromPath(path, dest): 109 | """ Creates a bundle from a directory that contains an addon manifest file.""" 110 | basedir = os.path.abspath(path) 111 | with zipfile.ZipFile(dest, 'w', zipfile.ZIP_DEFLATED) as z: 112 | # FIXME: the include/exclude feature may or may not be useful. Also python files can be pre-compiled. 113 | for dir, dirnames, filenames in os.walk(basedir): 114 | relativePath = os.path.relpath(dir, basedir) 115 | for filename in filenames: 116 | pathInBundle = os.path.join(relativePath, filename) 117 | absPath = os.path.join(dir, filename) 118 | if pathInBundle not in buildVars.excludedFiles: z.write(absPath, pathInBundle) 119 | return dest 120 | 121 | def generateManifest(source, dest): 122 | addon_info = buildVars.addon_info 123 | addon_info["addon_version"] = env["addon_version"] 124 | addon_info["addon_updateChannel"] = env["addon_updateChannel"] 125 | with codecs.open(source, "r", "utf-8") as f: 126 | manifest_template = f.read() 127 | manifest = manifest_template.format(**addon_info) 128 | with codecs.open(dest, "w", "utf-8") as f: 129 | f.write(manifest) 130 | 131 | def generateTranslatedManifest(source, language, out): 132 | # No ugettext in Python 3. 133 | if sys.version_info.major == 2: 134 | _ = gettext.translation("nvda", localedir=os.path.join("addon", "locale"), languages=[language]).ugettext 135 | else: 136 | _ = gettext.translation("nvda", localedir=os.path.join("addon", "locale"), languages=[language]).gettext 137 | vars = {} 138 | for var in ("addon_summary", "addon_description"): 139 | vars[var] = _(buildVars.addon_info[var]) 140 | with codecs.open(source, "r", "utf-8") as f: 141 | manifest_template = f.read() 142 | result = manifest_template.format(**vars) 143 | with codecs.open(out, "w", "utf-8") as f: 144 | f.write(result) 145 | 146 | def expandGlobs(files): 147 | return [f for pattern in files for f in env.Glob(pattern)] 148 | 149 | addon = env.NVDAAddon(addonFile, env.Dir('addon')) 150 | 151 | langDirs = [f for f in env.Glob(os.path.join("addon", "locale", "*"))] 152 | 153 | #Allow all NVDA's gettext po files to be compiled in source/locale, and manifest files to be generated 154 | for dir in langDirs: 155 | poFile = dir.File(os.path.join("LC_MESSAGES", "nvda.po")) 156 | moFile=env.gettextMoFile(poFile) 157 | env.Depends(moFile, poFile) 158 | translatedManifest = env.NVDATranslatedManifest(dir.File("manifest.ini"), [moFile, os.path.join("manifest-translated.ini.tpl")]) 159 | env.Depends(translatedManifest, ["buildVars.py"]) 160 | env.Depends(addon, [translatedManifest, moFile]) 161 | 162 | pythonFiles = expandGlobs(buildVars.pythonSources) 163 | for file in pythonFiles: 164 | env.Depends(addon, file) 165 | 166 | #Convert markdown files to html 167 | createAddonHelp("addon") # We need at least doc in English and should enable the Help button for the add-on in Add-ons Manager 168 | for mdFile in env.Glob(os.path.join('addon', 'doc', '*', '*.md')): 169 | htmlFile = env.markdown(mdFile) 170 | env.Depends(htmlFile, mdFile) 171 | env.Depends(addon, htmlFile) 172 | 173 | # Pot target 174 | i18nFiles = expandGlobs(buildVars.i18nSources) 175 | gettextvars={ 176 | 'gettext_package_bugs_address' : 'nvda-translations@groups.io', 177 | 'gettext_package_name' : buildVars.addon_info['addon_name'], 178 | 'gettext_package_version' : buildVars.addon_info['addon_version'] 179 | } 180 | 181 | pot = env.gettextPotFile("${addon_name}.pot", i18nFiles, **gettextvars) 182 | env.Alias('pot', pot) 183 | env.Depends(pot, i18nFiles) 184 | mergePot = env.gettextMergePotFile("${addon_name}-merge.pot", i18nFiles, **gettextvars) 185 | env.Alias('mergePot', mergePot) 186 | env.Depends(mergePot, i18nFiles) 187 | 188 | # Generate Manifest path 189 | manifest = env.NVDAManifest(os.path.join("addon", "manifest.ini"), os.path.join("manifest.ini.tpl")) 190 | # Ensure manifest is rebuilt if buildVars is updated. 191 | env.Depends(manifest, "buildVars.py") 192 | 193 | env.Depends(addon, manifest) 194 | env.Default(addon) 195 | env.Clean (addon, ['.sconsign.dblite', 'addon/doc/en/']) 196 | -------------------------------------------------------------------------------- /site_scons/site_tools/gettexttool/__init__.py: -------------------------------------------------------------------------------- 1 | """ This tool allows generation of gettext .mo compiled files, pot files from source code files 2 | and pot files for merging. 3 | 4 | Three new builders are added into the constructed environment: 5 | 6 | - gettextMoFile: generates .mo file from .pot file using msgfmt. 7 | - gettextPotFile: Generates .pot file from source code files. 8 | - gettextMergePotFile: Creates a .pot file appropriate for merging into existing .po files. 9 | 10 | To properly configure get text, define the following variables: 11 | 12 | - gettext_package_bugs_address 13 | - gettext_package_name 14 | - gettext_package_version 15 | 16 | 17 | """ 18 | from SCons.Action import Action 19 | 20 | def exists(env): 21 | return True 22 | 23 | XGETTEXT_COMMON_ARGS = ( 24 | "--msgid-bugs-address='$gettext_package_bugs_address' " 25 | "--package-name='$gettext_package_name' " 26 | "--package-version='$gettext_package_version' " 27 | "-c -o $TARGET $SOURCES" 28 | ) 29 | 30 | def generate(env): 31 | env.SetDefault(gettext_package_bugs_address="example@example.com") 32 | env.SetDefault(gettext_package_name="") 33 | env.SetDefault(gettext_package_version="") 34 | 35 | env['BUILDERS']['gettextMoFile']=env.Builder( 36 | action=Action("msgfmt -o $TARGET $SOURCE", "Compiling translation $SOURCE"), 37 | suffix=".mo", 38 | src_suffix=".po" 39 | ) 40 | 41 | env['BUILDERS']['gettextPotFile']=env.Builder( 42 | action=Action("xgettext " + XGETTEXT_COMMON_ARGS, "Generating pot file $TARGET"), 43 | suffix=".pot") 44 | 45 | env['BUILDERS']['gettextMergePotFile']=env.Builder( 46 | action=Action("xgettext " + "--omit-header --no-location " + XGETTEXT_COMMON_ARGS, 47 | "Generating pot file $TARGET"), 48 | suffix=".pot") 49 | 50 | -------------------------------------------------------------------------------- /site_scons/site_tools/gettexttool/__init__.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mltony/nvda-bluetooth-audio/9c8b16fbf56362b2ea3a8e08e04f0ac691e2fff0/site_scons/site_tools/gettexttool/__init__.pyc -------------------------------------------------------------------------------- /style.css: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | body { 3 | font-family : Verdana, Arial, Helvetica, Sans-serif; 4 | color : #FFFFFF; 5 | background-color : #000000; 6 | line-height: 1.2em; 7 | } 8 | h1, h2 {text-align: center} 9 | dt { 10 | font-weight : bold; 11 | float : left; 12 | width: 10%; 13 | clear: left 14 | } 15 | dd { 16 | margin : 0 0 0.4em 0; 17 | float : left; 18 | width: 90%; 19 | display: block; 20 | } 21 | p { clear : both; 22 | } 23 | a { text-decoration : underline; 24 | } 25 | :active { 26 | text-decoration : none; 27 | } 28 | a:focus, a:hover {outline: solid} 29 | :link {color: #0000FF; 30 | background-color: #FFFFFF} 31 | -------------------------------------------------------------------------------- /xgettext.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mltony/nvda-bluetooth-audio/9c8b16fbf56362b2ea3a8e08e04f0ac691e2fff0/xgettext.exe --------------------------------------------------------------------------------