forked from mirrors/linphone-iphone
Fix compilation issue in console.c for Mac
This commit is contained in:
parent
eb70e7067b
commit
5ea937f787
1 changed files with 6 additions and 0 deletions
|
|
@ -2109,7 +2109,13 @@ static int lpc_cmd_speak(LinphoneCore *lc, char *args){
|
|||
memset(voice,0,sizeof(voice));
|
||||
sscanf(args,"%63s",voice);
|
||||
sentence=args+strlen(voice);
|
||||
|
||||
#ifdef __APPLE__
|
||||
wavfile=mktemp("/tmp/linphonec-espeak-XXXXXX");
|
||||
#else
|
||||
wavfile=tempnam("/tmp/","linphonec-espeak-");
|
||||
#endif
|
||||
|
||||
snprintf(cl,sizeof(cl),"espeak -v %s -s 100 -w %s --stdin",voice,wavfile);
|
||||
file=popen(cl,"w");
|
||||
if (file==NULL){
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue