Save Speak to wav files

Who i can use Speak “Return to Home” and save on wav file format

Did you check speech classes in our MBS Plugins?

thanks let me try

See SpeakFile function in WinSpeechMBS class for windows.
And StartSpeakingString with folderitem parameter in NSSpeechSynthesizerMBS class for MacOS.

@Alexis Colon Lugo — On macOS, the command line command “say” can save the audio to a file. The file format is usually AIFF but the man page indicates that “some voices support many more file formats”.

For example:

say -o ~/Desktop/HelloWorld.aiff "Hello world"

And there are many options. Type “man say” to read the full man page.

MacosLib (64bit):
if not mSpeech.StartSpeakingTextToFile( mText, mFolderitem) then
end if

But I need to use the application in cross-platform. I have to use MBS

I have error

Dim w As new WinSpeechMBS
Dim s As String

s=“Hola test”

w.Speak s
w.SpeakFile FindFile(“Speech Output.wav”),s <<<< no save the file

// Look for file in parent folders from executable on

dim parent as FolderItem = app.ExecutableFile.Parent

while parent<>Nil

dim file as FolderItem = parent.Child(name)

if file<>Nil and file.Exists then
  Return file
end if

parent = parent.Parent