You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im attempting the pipe service approach - heres an update
engine/engine.cpp and regvoice.cpp are modified they now speak not via python but directly to the pipe service
So RegisterVoice.py/exe - Lists engines and voices by calling the pipe Service
hitting "register voice" will connect with register_voice in pipe serrvice
In turn, it calls regsrvr32 with regvoice.exe
So register seems to work - but it doesnt. It adds registry keys but you don't see it listed in SAPI voices. I dont understand how the old code worked in that I cant see in the registry a reference to the dll that is created.
Adding a InprocServer32 key seems to help.. but I feel this is a hack
# Define the registry path and the DLL path
$registryPath = "HKLM:\SOFTWARE\Microsoft\Speech\Voices\Tokens\PYTTS-Microsoft\InprocServer32"
$dllPath = "C:\GitHub\SAPI-POC\VoiceServer\_libs\pysapittsengine.dll"
# Create the 'InprocServer32' key
New-Item -Path $registryPath -Force
# Set the default value to the DLL path
Set-ItemProperty -Path $registryPath -Name "(default)" -Value $dllPath
# Verify the change
Get-ItemProperty -Path $registryPath
If you do this (after you register using our code). You can see a voice in powershell but still not in a proper SAPI system like balabolka
So why? And this still isnt getting to try out speaking..
What does work
What doesnt work
The code in VoiceServer.
See engine.cpp is doing some neat little things to call our python file directly in voices/
We dont need to do that. I wonder about either
a. Calling our pipe service directly..
or
b. Call an executable (e.g pyfrozen exe) that calls our pipe service
e.g
The text was updated successfully, but these errors were encountered: