pumper42nickel / eloquence_threshold

Eloquence synthesizer NVDA add-on compatible with threshold versions of NVDA (2019.3 and later). Supports Python 3 and new NVDA speech framework.
25 stars 10 forks source link

The audio device is not set to idle when speaking is finished #24

Open btman16 opened 3 years ago

btman16 commented 3 years ago

In other synth drivers for NVDA, including eSpeak-NG and SAPI5, the idle state is set when speech finishes, which allows audio ducking to work fully, including the "Duck when outputting speech and sounds" option. Setting this to idle also seems to provide longer battery life on laptops, as I have noticed that I get longer battery life when using other synth drivers as compared to this one.

Therefore I was wondering if it would be possible to support setting the audio device to idle when speech finishes please?

Thank you very much for your time and I look forward to any input you may have.

Sincerely,

Brandon Tyson

pumper42nickel commented 3 years ago

Right, I am aware that ducking doesn't work properly. Buffering logic that deals with that is quite complicated. @Mohamed00 - are you perhaps familiar with this part of code?