I am using the Cloud Text-To-Speech library here: Cloud Text-To-Speech b4xlib in a B4J project (v8.90)
After getting the sample project in the above link (post #1) working correctly, I changed one line to implement the convertToMp3 method, which is supposed to save the audio file to an MP3 file.
This change works perfectly in Debug mode, but in Release mode the file is not created - instead the text is spoken aloud via the PC's speakers and a file is created containing the txtSpeak.text as part of the filename.
Is there a step I am missing? Any help would be warmly appreciated - thank you.
After getting the sample project in the above link (post #1) working correctly, I changed one line to implement the convertToMp3 method, which is supposed to save the audio file to an MP3 file.
B4X:
Sub btnPlay_Click
If txtSpeak.Text<>"" Then
'cTTS.Speak(txtSpeak.Text)
cTTS.convertTomp3(txtSpeak.Text,File.DirApp,"CloudTTS.mp3")
End If
End Sub
This change works perfectly in Debug mode, but in Release mode the file is not created - instead the text is spoken aloud via the PC's speakers and a file is created containing the txtSpeak.text as part of the filename.
Is there a step I am missing? Any help would be warmly appreciated - thank you.