Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Tag: WoW API docs
No edit summary
Tag: WoW API docs
Line 1: Line 1:
 
{{wowapi|t=a|namespace=C_VoiceChat|system=VoiceChat}}
 
{{wowapi|t=a|namespace=C_VoiceChat|system=VoiceChat}}
  +
Reads text to speech.
Needs summary.
 
 
C_VoiceChat.SpeakText(voiceID, text, destination, rate, volume)
 
C_VoiceChat.SpeakText(voiceID, text, destination, rate, volume)
   
Line 10: Line 10:
 
;rate : <span class="apitype">number</span> - Speech rate; the speed at which the text is read.
 
;rate : <span class="apitype">number</span> - Speech rate; the speed at which the text is read.
 
;volume : <span class="apitype">number</span> : <code>[0-100]</code>
 
;volume : <span class="apitype">number</span> : <code>[0-100]</code>
  +
  +
==Details==
  +
* Multiple QueuedLocalMessages may play out of order; the queue is neither FIFO nor LIFO.
   
 
==Example==
 
==Example==

Revision as of 05:04, 11 January 2022

Reads text to speech.

C_VoiceChat.SpeakText(voiceID, text, destination, rate, volume)

Arguments

voiceID
number - Voice IDs from .GetTtsVoices() or .GetRemoteTtsVoices()
text
string - The message to speak.
destination
Enum.VoiceTtsDestination
Value Field Description
0 RemoteTransmission
1 LocalPlayback
2 RemoteTransmissionWithLocalPlayback
3 QueuedRemoteTransmission
4 QueuedLocalPlayback
5 QueuedRemoteTransmissionWithLocalPlayback
6 ScreenReader
rate
number - Speech rate; the speed at which the text is read.
volume
number : [0-100]

Details

  • Multiple QueuedLocalMessages may play out of order; the queue is neither FIFO nor LIFO.

Example

Speaks a message with Microsoft David (enUS).

/run C_VoiceChat.SpeakText(0, "Hello world", Enum.VoiceTtsDestination.LocalPlayback, 0, 100)

Speaks a message with Microsoft Zira (enUS), with a slower speech rate.

/run C_VoiceChat.SpeakText(1, "Hello world", Enum.VoiceTtsDestination.LocalPlayback, -10, 100)

Patch changes