Copyright © 2008-2023 MultiMedia Soft

TracksBoard.ItemSpeechVoiceSet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Modifies the voice used to render the speech text of the given item. The current voice of the item can be obtained through the TracksBoard.ItemSpeechVoiceGet method.

 

For details about the use of the TracksBoard refer to the How to use the TracksBoard to visually compose songs tutorial.

For further details about methods of the TracksBoard refer to the TracksBoard class section.

 

 

Syntax

 

[Visual Basic]

control.TracksBoard.ItemSpeechVoiceSet (

nUniqueId as Long,

nVoice as Long

) as enumErrorCodes


 

[C++]

short control.TracksBoard.ItemSpeechVoiceSet (

long nUniqueId,

long nVoice

);


 

Parameter

Description

 

 

nUniqueId

Unique identification number assigned to the sound item after being generated by one of the following methods:

TracksBoard.ItemClone when an existing speech item has been cloned

nVoice

The zero-based index of the speaking voice. The total number of voices installed inside the system can be obtained through the SpeechVoicesNumGet method and related attributes can be obtained through the SpeechVoiceAttributeGet method.

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred, check the LastError property value in order to get the error code

enumErrorCodes.ERR_NOERROR (0)

The method call was successful