STAudioPlayParams Struct Reference
| Declared in | STMediaParams_doc.h |
Tasks
-
looppropertySpecifies whether the audio segmant playback will loop indefinitley until client sends a request to stop audio playback. Only valid for audio playback of recorded audio files. Does not apply to audio playback of speech synthesis. Default: false.
-
loopCountpropertyThe number of loops of the audio playback. Default: 1.0.
-
volumepropertyThe volume of the audio playback. Default: 1.0.
-
ratepropertyThe rate of the audio playback. Default: 1.0.
-
pitchpropertyThe pitch of the audio playback. Default: 0.0.
-
fadeOutMspropertyThe is the duration that it will take for an audio playback to stop with fade out. Default: 0 to stop audio playback immediately.
-
startPlayPosMspropertyThe timestamp when audio playback will start playing an audio segment from. Default: 0 to start audio playback from beginning of the audio segment.
-
stopPlayPosMspropertyThe timestamp when audio playback will stop playing an audio segment at. Default: 0 to continue audio playback to the end of the audio segment.
-
notificationMspropertyThe bookmark timestamp in milliseconds when client will be notified when audio playback reaches the bookmark in an audio segment. Default: 0 reflects no bookmark is set.
-
startPlayTextFilePospropertyCharacter position to start speech synthesis at. The default value is 0.
-
ssVoiceParamspropertyThe speech synthesizer voice parameres defined in STSSVoiceParams. Default value: nil.
-
ssEnginepropertyThe speech synthesizer engine name. Default: Apple.
-
ssPlaySilenceParamspropertyThe parameters for playing synthesized speech including the processing playing silence durations between phrases and paragraphs . Default: nil.
-
ssRecordParamspropertyThe parameters for recording synthesized audio to a file. Default: nil.
Properties
fadeOutMs
var fadeOutMs: Int32?
Discussion
The is the duration that it will take for an audio playback to stop with fade out. Default: 0 to stop audio playback immediately.
Declared In
STMediaParams_doc.h
loop
var loop: Bool?
Discussion
Specifies whether the audio segmant playback will loop indefinitley until client sends a request to stop audio playback. Only valid for audio playback of recorded audio files. Does not apply to audio playback of speech synthesis. Default: false.
Declared In
STMediaParams_doc.h
loopCount
var loopCount: Int?
Discussion
The number of loops of the audio playback. Default: 1.0.
Declared In
STMediaParams_doc.h
notificationMs
var notificationMs: Int32?
Discussion
The bookmark timestamp in milliseconds when client will be notified when audio playback reaches the bookmark in an audio segment. Default: 0 reflects no bookmark is set.
Declared In
STMediaParams_doc.h
pitch
var pitch: Float?
Discussion
The pitch of the audio playback. Default: 0.0.
Declared In
STMediaParams_doc.h
rate
var rate: Float?
Discussion
The rate of the audio playback. Default: 1.0.
Declared In
STMediaParams_doc.h
ssEngine
var ssEngine: String?
Discussion
The speech synthesizer engine name. Default: Apple.
Declared In
STMediaParams_doc.h
ssPlaySilenceParams
var ssPlaySilenceParams: STSSPlaySilenceParams?
Discussion
The parameters for playing synthesized speech including the processing playing silence durations between phrases and paragraphs . Default: nil.
Declared In
STMediaParams_doc.h
ssRecordParams
var ssRecordParams: STSSRecordParams?
Discussion
The parameters for recording synthesized audio to a file. Default: nil.
Declared In
STMediaParams_doc.h
ssVoiceParams
var ssVoiceParams: STSSVoiceParams?
Discussion
The speech synthesizer voice parameres defined in STSSVoiceParams. Default value: nil.
Declared In
STMediaParams_doc.h
startPlayPosMs
var startPlayPosMs: Int32?
Discussion
The timestamp when audio playback will start playing an audio segment from. Default: 0 to start audio playback from beginning of the audio segment.
Declared In
STMediaParams_doc.h
startPlayTextFilePos
var startPlayTextFilePos: Int64?
Discussion
Character position to start speech synthesis at. The default value is 0.
Declared In
STMediaParams_doc.h