Save Speak to wav files

  1. 4 weeks ago

    Alexis C

    Feb 17 Pre-Release Testers Puerto Rico, USA

    Hi
    Who i can use Speak "Return to Home" and save on wav file format

  2. Christian S

    Feb 17 Pre-Release Testers, Xojo Pro, XDC Speakers Germany

    Did you check speech classes in our MBS Plugins?

  3. Alexis C

    Feb 17 Pre-Release Testers Puerto Rico, USA

    No
    thanks let me try

  4. Christian S

    Feb 17 Pre-Release Testers, Xojo Pro, XDC Speakers Germany

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

  5. @Alexis Cnbsp;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.

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

  7. Alexis C

    Feb 20 Pre-Release Testers Puerto Rico, USA

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

  8. Alexis C

    Feb 20 Pre-Release Testers Puerto Rico, USA

    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
    wend

or Sign Up to reply!