B_SetVoiceFile

C API:

B_SetVoiceFile( PORTFAX Port, LPSTR lpFileName );

C++ API

Port->SetVoiceFile( LPSTR lpFileName );

Class 1.

Class 2.

Class 2.0

Brooktrout

 

GammaLink

 

Dialogic

 

NMS

 

 

 

g

 

 

 

Description

The function sets the name of the voice file which is played after a call is received and DTMF detection is enabled. The file must contain raw speech data recorded by one of the Brooktrout fax cards using the following parameters:

Coding format :                   ADPCM

Rate :                                    8000 samples / sec

Number of bits per sample :          4 bits / samples

AFE sample rate :               8000 samples / sec

Data format :                                    MSB is first

 

Playing voice file is possible only with TR114 and TR200 Brooktrout cards.

Parameters

LPSTR

lpFileName

Name of the file containing speech data.

Return Value

Zero on success, not zero on an error.

Sample Code

None at present.