mltony / nvda-bluetooth-audio Goto Github PK
View Code? Open in Web Editor NEWBluetooth Audio NVDA add-on improves sound quality when working with bluetooth headphones or speakers.
License: GNU General Public License v2.0
Bluetooth Audio NVDA add-on improves sound quality when working with bluetooth headphones or speakers.
License: GNU General Public License v2.0
Hello,
Could you generate a release with nvda 2024.1 compatibility?
I haven't been able to locate such a release, and I supose the addon distribution system, is still broken on the NVDA system.
When I connect headphone, this addon should be notified and start playing audio. but it does not work before nvda gets restart.
Thanks
Consider the following code to paste in NVDA's console
import threading
import ui
def test():
threading.Thread(target=thread).start()
def thread():
ui.message("Hello world")
Then, in the console, type:
test()
With this add-on, an error is logged and the message is not spoken.
ui.message
should be usable from any thread as when this add-on is not installed in NVDA.
Starting with NVDA 2022.1, Key echo stopped working. This also happened in 2022.2 beta 1. With beta 1, I get the error sound. When I disabled Bluetooth 1.4, the key echo started working again.
Just wanted to point out that this add-on fixes crackling speech output on virtual machines.
Maybe you want to point that out in your README?
Thanks a lot for your effort. ❤️
I've been testing this audio I'll send you that I've been creating and at least in my situation, my Bluetooth device still doesn't go into sleep mode when I set it to volume 1.
I would like you to try this audio and tell me if your Bluetooth device works perfectly for you.
To paste this audio, simply press windows + r and paste the following:
%AppData%\nvda\addons\bluetoothaudio\sounds
Once you are in this directory, paste the file you downloaded into this post.
When I'm calling in skype I can not nvda's voice through bluetooth headphone but nvda's voice comes out of wired headphone and other sounds comes through bluetooth headphone.
look at this issue.
nvaccess/nvda#4178
If I press ctrl+nvda+s and switch audio output to (my bluetooth headphone)+headset, it will resolve temporarily.
This issue may does not have related directly to this addon but this addon can be solution.
Hello. The issue with audio clipping is not part of this plugin, but rather the latest version of NVDA: which in this case it would be. 2024.1 beta 3, so I'll leave this issue closed.
NV-Box
Sorry, this addon is not localized into other languages, its main language is Chinese.
The error log is as follows:
ERROR - stderr (14:40:25.035) - Thread-4 (15632):
Exception in thread Thread-4:
Traceback (most recent call last):
File "C:\Users\cary\AppData\Roaming\nvda\addons\NVBox\globalPlugins\nvbox\caiyun\__init__.py", line 127, in broadcastWeather
ui.message(f'正在获取 {location[2]} 的天气信息')
File "ui.pyc", line 130, in message
File "speech\speech.pyc", line 188, in speakMessage
File "C:\Users\cary\AppData\Roaming\nvda\addons\bluetoothaudio\globalPlugins\bluetoothAudio.py", line 185, in wrapperFunc
hookFunc()
File "C:\Users\cary\AppData\Roaming\nvda\addons\bluetoothaudio\globalPlugins\bluetoothAudio.py", line 66, in resetCounter
beepThread.play(t, reopen)
File "C:\Users\cary\AppData\Roaming\nvda\addons\bluetoothaudio\globalPlugins\bluetoothAudio.py", line 165, in play
self.timer.Start(timerDuration, wx.TIMER_ONE_SHOT)
wx._core.wxAssertionError: C++ assertion "wxThread::IsMain()" failed at ..\..\src\common\timerimpl.cpp(57) in wxTimerImpl::Start(): timer can only be started from the main thread
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "threading.pyc", line 926, in _bootstrap_inner
File "threading.pyc", line 870, in run
File "C:\Users\cary\AppData\Roaming\nvda\addons\NVBox\globalPlugins\nvbox\wrapper.py", line 32, in run
func(*args, **kwargs)
File "C:\Users\cary\AppData\Roaming\nvda\addons\NVBox\globalPlugins\nvbox\caiyun\__init__.py", line 137, in broadcastWeather
ui.message(f'{e}')
File "ui.pyc", line 130, in message
File "speech\speech.pyc", line 188, in speakMessage
File "C:\Users\cary\AppData\Roaming\nvda\addons\bluetoothaudio\globalPlugins\bluetoothAudio.py", line 185, in wrapperFunc
hookFunc()
File "C:\Users\cary\AppData\Roaming\nvda\addons\bluetoothaudio\globalPlugins\bluetoothAudio.py", line 66, in resetCounter
beepThread.play(t, reopen)
File "C:\Users\cary\AppData\Roaming\nvda\addons\bluetoothaudio\globalPlugins\bluetoothAudio.py", line 165, in play
self.timer.Start(timerDuration, wx.TIMER_ONE_SHOT)
wx._core.wxAssertionError: C++ assertion "wxThread::IsMain()" failed at ..\..\src\common\timerimpl.cpp(57) in wxTimerImpl::Start(): timer can only be started from the main thread
IO - tones.beep (14:40:25.144) - Thread-3 (10476):
Beep at pitch 659, for 50 ms, left volume 50, right volume 50
Thanks for your grate addon, I think if this adon stop playing audio file if user leaving his or her computer, or nvda does not speak after a few minute, it can help the battery life of headsets.
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.