Speech synthesis: Difference between revisions

m
(Added Quackery.)
m (→‎{{header|Wren}}: Minor tidy)
 
Line 955:
=={{header|Wren}}==
The ability to call external processes such as ''espeak'' is expected to be added to Wren-cli in the next release. In the meantime, we embed the following Wren script in a minimal C host (no error checking) to complete this task.
<syntaxhighlight lang="ecmascriptwren">/* speech_synthesisSpeech_synthesis.wren */
 
class C {
Line 968:
<br>
We now embed this in the following C program, compile and run it.
<syntaxhighlight lang="c">#include/* <stdiogcc Speech_synthesis.h>c -o Speech_synthesis -lwren -lm */
 
#include <stdio.h>
#include <stdio_ext.h>
#include <stdlib.h>
Line 1,030 ⟶ 1,032:
WrenVM* vm = wrenNewVM(&config);
const char* module = "main";
const char* fileName = "speech_synthesisSpeech_synthesis.wren";
char *script = readFile(fileName);
wrenInterpret(vm, module, script);
9,490

edits