i want to try and create a script that works with googe text to speech. it has to save txt files as mp3 files
i have a folder of txt files that i want to save as mp3 through google TTS web service
it has to process al the text files and save as mp3
if google TTS doesnt work we have microsoft azure TTS
https://azure.microsoft.com/en-us/products/cognitive-services/text-to-speech/
https://learn.microsoft.com/en-us/azure/cognitive-services/speech-service/get-started-text-to-speech?pivots=programming-language-csharp
google TTS neural voice for txt to mp3
google TTS neural voice for txt to mp3
Last edited by crypter on 20 Dec 2022, 07:22, edited 1 time in total.
Re: google TTS neural voice for txt to mp3
it can use microsoft azure TTS because it doesnt have a capcha
plz help me, i depend on this
plz help me, i depend on this
Re: google TTS neural voice for txt to mp3
an example
Code: Select all
;============================================================
e1=
(
How are you ?
Nice weather today .
I'll see you tomorrow .
)
TL:="English"
;TL:="German"
spVoice:=ComObjCreate("SAPI.SpVoice")
stream :=ComObjCreate("SAPI.SpFileStream")
voices :=spVoice.GetVoices()
voiceSet=0
name:=a_desktop . "\" . a_now . "_example.wav"
for voice in voices {
description:=voice.GetDescription
if (InStr(description,TL)) {
spVoice.voice:=voice
voiceSet=1
break
}
}
return
;---------
$F9::
if (voiceSet)
{
stream.open(name, 3)
spvoice.AudioOutputStream := stream
spVoice.Speak(e1)
sleep,300
stream.close()
}
else
MsgBox No %TL% TTS support.
try
run,%name%
return
;=========================================================
Re: google TTS neural voice for txt to mp3
If You really depend on "azure text to speech" without paid subscription then You need to understand how this algorithm works on python and then convert it to ahk.plz help me, i depend on this
https://github.com/OS984/DiscordBotBackend/blob/main/NeuralTTS.py
Re: google TTS neural voice for txt to mp3
we should gather some professional AHK programmers to create this. it`s very useful.
also, azure TTS has a character limit, and google TTS has a capcha check
also, azure TTS has a character limit, and google TTS has a capcha check
Re: google TTS neural voice for txt to mp3
If You ask this question about 2 years ago, I would try to transfer it, because it was interesting for me to investigate and translate python code.
But now I am too lazy for such a task.
On Your place I would try to start learning python and use it for this task instead of ahk.
BTW here is cli
https://github.com/skygongque/tts/tree/main/python_cli_demo
But now I am too lazy for such a task.
On Your place I would try to start learning python and use it for this task instead of ahk.
BTW here is cli
https://github.com/skygongque/tts/tree/main/python_cli_demo