When you want eSpeak to speak from a Win10 QB64 program I use the following line: SHELL _HIDE "eSpeak -v en-us This_is_What_U_Want_to_Say" You don't need to DECLARE LIBRARY or DIM anything just include your variation of the above line as a QB64 line.
Why is there no sound when the same line is entered in DOS prompt it works
This eSpeak sample program runs on Win 10 QB64 but there is no sound. The Task Master shows that eSpeak is opened. DECLARE LIBRARY FUNCTION WinExec (lpCmdLine AS STRING, BYVAL nCmdShow AS LONG) END DECLARE DECLARE SUB eSpeak (lines$) DIM SHARED eSpeak_exe$ eSpeak_exe$ = " espeak.exe -v en-us+f2 -p60 -g5 -k20 " A$ = "Hello How are you" eSpeak A$ A$ = "Goodbye" eSpeak A$ END SUB eSpeak (lines$) Filename$ = eSpeak_exe$ + CHR$(34) + lines$ + CHR$(34) + CHR$(13) x = WinExec(Filename$ + CHR$(0), 0) PRINT...
No "Links" just Windows 10 running QB64.