ost::BayonneAudio Class Reference

Offers core Bayonne audio processing in a self contained class.self contained Bayonne audio processing. More...

#include <bayonne.h>

Inheritance diagram for ost::BayonneAudio:

ost::AudioStream ost::Bayonne ost::AudioFile ost::Script ost::AudioBase ost::Audio List of all members.

Public Member Functions

 BayonneAudio ()
 Initialize instance of audio.
const char * getFilename (const char *name, bool write=false)
 Convert a prompt identifier into a complete audio file pathname.
void cleanup (void)
 Clear open files and other data structures from previous audio processing operations.
void play (const char **list, Mode mode=modeRead)
 Open a sequence of audio prompts for playback.
void record (const char *name, Mode mode=modeCreate, const char *annotation=NULL)
 Open an audio prompt for recording.
const char * getVoicelib (const char *iso)
 Check if a voice library is available.
AudioCodecgetCodec (void)
 Get audio codec used.

Public Attributes

AudioTonetone
 Current tone object to use for generation of audio tones, dtmf dialing sequences, etc.
BayonneTranslatortranslator
 Current language translator in effect for the current set of autio prompts.
char vlib [60]
 Alternate voicelib construct.
const char * extension
const char * voicelib
const char * libext
const char * prefixdir
const char * offset
Encoding encoding
timeout_t framing
char var_position [14]

Protected Member Functions

char * getContinuation (void)

Protected Attributes

char filename [MAX_PATHNAME]
const char ** list

Detailed Description

Offers core Bayonne audio processing in a self contained class.self contained Bayonne audio processing.

The BayonneAudio class is used with each session object.

Author:
David Sugar <dyfet@gnutelephony.org>


Constructor & Destructor Documentation

ost::BayonneAudio::BayonneAudio  ) 
 

Initialize instance of audio.


Member Function Documentation

void ost::BayonneAudio::cleanup void   ) 
 

Clear open files and other data structures from previous audio processing operations.

AudioCodec* ost::BayonneAudio::getCodec void   )  [inline]
 

Get audio codec used.

Returns:
audio codec.

Reimplemented from ost::AudioStream.

char* ost::BayonneAudio::getContinuation void   )  [protected, virtual]
 

Reimplemented from ost::AudioFile.

const char* ost::BayonneAudio::getFilename const char *  name,
bool  write = false
 

Convert a prompt identifier into a complete audio file pathname.

Returns:
pointer to fully qualified file path or NULL if invalid.
Parameters:
name of prompt requested.
write path required if true.

const char* ost::BayonneAudio::getVoicelib const char *  iso  ) 
 

Check if a voice library is available.

Returns:
voice library id or NULL if invalid.
Parameters:
iso name of library to request.

void ost::BayonneAudio::play const char **  list,
Mode  mode = modeRead
 

Open a sequence of audio prompts for playback.

Parameters:
list of prompts to open.
mode for playback file processing of list.

void ost::BayonneAudio::record const char *  name,
Mode  mode = modeCreate,
const char *  annotation = NULL
 

Open an audio prompt for recording.

Parameters:
name of prompt to open.
mode whether to create or use pre-existing recording.
annotation to save in file if supported by format used.


Member Data Documentation

Encoding ost::BayonneAudio::encoding
 

const char* ost::BayonneAudio::extension
 

char ost::BayonneAudio::filename[MAX_PATHNAME] [protected]
 

timeout_t ost::BayonneAudio::framing
 

const char * ost::BayonneAudio::libext
 

const char** ost::BayonneAudio::list [protected]
 

const char * ost::BayonneAudio::offset
 

const char * ost::BayonneAudio::prefixdir
 

AudioTone* ost::BayonneAudio::tone
 

Current tone object to use for generation of audio tones, dtmf dialing sequences, etc.

BayonneTranslator* ost::BayonneAudio::translator
 

Current language translator in effect for the current set of autio prompts.

char ost::BayonneAudio::var_position[14]
 

char ost::BayonneAudio::vlib[60]
 

Alternate voicelib construct.

const char * ost::BayonneAudio::voicelib
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 6 09:03:08 2006 for Bayonne Framework by  doxygen 1.4.6