Yattm - unified GTK instant-messaging client logo
   [Generated for version 0.2-17 - Mon Jan 6 19:01:23 GMT+1 2003]

Home - Main Page - Data Structures - File List - Data Fields - Globals

speech.h File Reference

#include "account.h"

Include dependency graph for speech.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Functions

void speak_message (eb_account *remote, gchar *voice, gchar *message)
void say_strings (gchar *s1, gchar *s2, gchar *s3)


Function Documentation

void say_strings gchar *    s1,
gchar *    s2,
gchar *    s3
 

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 }

void speak_message eb_account   remote,
gchar *    voice,
gchar *    message
 

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 }


Contact: Andy Maloney     [Documentation generated by doxygen]