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
Voice - selection of named QVoice from OS available voices
Volume - float between 0 and 1
Will have to check about options for:
Locale
Pitch
Rate
Might add this as another dialog to the toolbar as well, with a test button
Example base setup to speech:
fromPyQt5.QtTextToSpeechimportQTextToSpeechengine=NoneengineNames=QTextToSpeech.availableEngines()
iflen(engineNames) >0:
engineName=engineNames[0]
engine=QTextToSpeech(engineName)
voices= []
forvoiceinengine.availableVoices():
voices.append(voice)
voice=voices[1]
engine.setVoice(voice)
details= {
"voice_gender": voice.genderName(voice.gender()),
"voice_age": voice.ageName(voice.age()),
"locale": engine.locale().name()
}
print(details)
# spaces between the letters make them spell outtext="Q G I S sound effects is totally going to get text to speech"engine.say(text)
The text was updated successfully, but these errors were encountered:
Add another algorithm to allow users to use their OS builtin voices to say input text
Using
QtTextToSpeech.QTextToSpeech
.Input for algorithm in initial stage should be:
QVoice
from OS available voicesWill have to check about options for:
Might add this as another dialog to the toolbar as well, with a test button
Example base setup to speech:
The text was updated successfully, but these errors were encountered: