Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion site_scons/RHVoicePackaging/nvda.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self,name,outdir,env,display_name,summary,description,version,data_
if data_package:
self.set_string("lastTestedNVDAVersion", "2099.4.0")
else:
self.set_string("lastTestedNVDAVersion", "2024.1.0")
self.set_string("lastTestedNVDAVersion", "2025.1.0")

def build_manifest(self,lang=None):
if lang:
Expand Down
4 changes: 3 additions & 1 deletion src/nvda-addon/synthDriver/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@

import addonAPIVersion
api_version = addonAPIVersion.CURRENT
import buildVersion

module_dir = os.path.dirname(__file__)
lib_path = os.path.join(module_dir, "RHVoice.dll")
Expand Down Expand Up @@ -189,7 +190,7 @@ def do_get_player(self):
return None
player = self.__players.get(self.__sample_rate, None)
if player is None:
player = nvwave.WavePlayer(channels=1, samplesPerSec=self.__sample_rate, bitsPerSample=16, outputDevice=config.conf["speech"]["outputDevice"])
player = nvwave.WavePlayer(channels=1, samplesPerSec=self.__sample_rate, bitsPerSample=16, outputDevice=self.__synth.outputDeviceSection["outputDevice"])
self.__players[self.__sample_rate] = player
return player

Expand Down Expand Up @@ -499,6 +500,7 @@ def __get_resource_paths(self):
def __init__(self):
self.__lib = load_tts_library()
self.__cancel_flag = threading.Event()
self.outputDeviceSection = config.conf["speech"] if buildVersion.version_year < 2025 else config.conf["audio"]
self.__player = AudioPlayer(self, self.__cancel_flag)
self.__sample_rate_callback = SampleRateCallback(self.__lib, self.__player)
self.__c_sample_rate_callback = RHVoice_callback_types.set_sample_rate(self.__sample_rate_callback)
Expand Down