Commit 5ea937f7 authored by Guillaume BIENKOWSKI's avatar Guillaume BIENKOWSKI
Browse files

Fix compilation issue in console.c for Mac

parent eb70e706
...@@ -2109,7 +2109,13 @@ static int lpc_cmd_speak(LinphoneCore *lc, char *args){ ...@@ -2109,7 +2109,13 @@ static int lpc_cmd_speak(LinphoneCore *lc, char *args){
memset(voice,0,sizeof(voice)); memset(voice,0,sizeof(voice));
sscanf(args,"%63s",voice); sscanf(args,"%63s",voice);
sentence=args+strlen(voice); sentence=args+strlen(voice);
#ifdef __APPLE__
wavfile=tempnam("/tmp/","linphonec-espeak-"); wavfile=tempnam("/tmp/","linphonec-espeak-");
snprintf(cl,sizeof(cl),"espeak -v %s -s 100 -w %s --stdin",voice,wavfile); snprintf(cl,sizeof(cl),"espeak -v %s -s 100 -w %s --stdin",voice,wavfile);
file=popen(cl,"w"); file=popen(cl,"w");
if (file==NULL){ if (file==NULL){
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment