| Yattm - unified GTK instant-messaging client | ![]() |
| [Generated for version 0.2-17 - Mon Jan 6 19:01:23 GMT+1 2003] |
#include "intl.h"#include <stdlib.h>#include <string.h>#include <pthread.h>#include "util.h"#include "speech.h"#include "globals.h"Include dependency graph for speech.c:

Go to the source code of this file.
Defines | |
| #define | DEFAULTMESSAGEBODYVOICE "`v2" |
Functions | |
| void | speak_message (eb_account *remote, gchar *voice, gchar *message) |
| void | say_strings (gchar *s1, gchar *s2, gchar *s3) |
|
|
Definition at line 35 of file speech.c. Referenced by speak_message(). |
|
||||||||||||||||
|
Definition at line 55 of file speech.c. Referenced by speak_message().
00056 {
00057 pid_t p = fork();
00058 if (p == 0) {
00059 execl(SpeechProgramFilename, SpeechProgramFilename,
00060 s1, s2, s3, NULL);
00061 }
00062 }
|
|
||||||||||||||||
|
Definition at line 37 of file speech.c. References DEFAULTMESSAGEBODYVOICE, account::handle, say_strings(), and strip_html().
00039 {
00040
00041 char xbuff[1024];
00042 char mbuff[256];
00043
00044 if (do_no_sound_when_away && is_away) return;
00045
00046 strcpy(xbuff, message);
00047 strip_html(xbuff);
00048 // todo: convert "LOL" to "ha ha ha"?
00049 sprintf(mbuff, "%s says: ", remote->handle);
00050 say_strings(mbuff,
00051 (voice == NULL ? DEFAULTMESSAGEBODYVOICE : voice),
00052 xbuff);
00053 }
|