Copyright © 2001-2019 MultiMedia Soft

SoundComposer.ItemSpeechFileSet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Modifies the text file, containing the string of text to speech, of the given item. The text file can be obtained through the SoundComposer.ItemContentGet method.

 

Due to the fact that modifying the string of text may certainly modify the original duration of the item, invoking the SoundComposer.ItemInfoGet method would allow keeping the duration updated.

 

For further details about sound composing see the the SoundComposer object and the How to compose a sound tutorial.

 

 

Syntax

 

[Visual Basic]

control.SoundGenerator.ItemSpeechFileSet (

nPlayer as Integer,

ByRef nUniqueId as Long,

strPathname as String

) as enumErrorCodes


 

[C++]

short control.SoundGenerator.ItemSpeechFileSet (

short nPlayer,

long nUniqueId,

LPCTSTR strPathname

);


 

Parameter

Description

 

 

nPlayer

Number representing the zero-based index of the player that owns the sound composer session

nUniqueId

The unique identifier of the element previously returned by the call to the SoundComposer.ItemSpeechFromStringAdd method or to the SoundComposer.ItemSpeechFromFileAdd method.

strPathname

Absolute pathname of the text file

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred (see the LastError property for further error details)

enumErrorCodes.NOERROR (0)

The method call was successful.