Copyright © 2005-2019 MultiMedia Soft

SoundGenerator.StreamElementSpeechTextGet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Obtains the string of text to speech for the given element.

 

For further details about sound generation see the SoundGenerator object and the How to generate wave tones, noises, DTMF tones and text to speech tutorial..

 

 

Syntax

 

[Visual Basic]

Public Function StreamElementSpeechTextGet (

nPlayerIndex as Int16,

nUniqueId as Int32,

ByRef bIsFile as bool

) as String


 

[C#]

public string StreamElementSpeechTextGet (

Int16 nPlayerIndex,

Int32 nUniqueId,

ref bool bIsFile

);


 

[C++]

public: string StreamElementSpeechTextGet (

Int16 nPlayerIndex,,

Int32 nUniqueId,

bool __gc  *bIsFile

);


 

Parameter

Description

 

 

nPlayerIndex

Number representing the zero-based index of the involved player

nUniqueId

The unique identifier of the element previously returned by one of the following calls:

- SoundGenerator.StreamChannelAddSpeechFromFile

- SoundGenerator.StreamChannelAddSpeechFromString

- SoundGenerator.StreamChannelElementUniqueIdGet

bIsFile

Reference to a value that, on return from the method call, will contain a boolean value stating if the returned string is the text to speech or the absolute pathname of a file containing the text to speech.

Supported values are the following:

Mnemonic Value

Meaning

false

The returned string represents the text to speech

true

The returned string represents the absolute pathname of a file containing the text to speech

 

 

Return value

 

Value

Meaning

 

 

Empty string

The information is not available or an error occurred (see the LastError property for further error details)

Valid string

String containing the text to speech or the absolute pathname of a file containing the text to speech.