RosettaCodeData/Task/Speech-synthesis/FreeBASIC/speech-synthesis.basic

13 lines
373 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
''This works on Windows. Does anyone know how it would be done in Linux?
Sub speak(texto As String)
Dim As String frase
frase ="mshta vbscript:Execute(""CreateObject(""""SAPI.SpVoice"""").Speak("""""+texto+""""")(window.close)"")"
Print texto
Shell frase
End Sub
speak "Vamos a contar " + str(123456)
speak "This is an example of speech synthesis."
Sleep