SynthesisRequest class

Constructors

SynthesisRequest(string, string, boolean, (e: SpeechSynthesisResult) => void, (e: string) => void, IAudioDestination)

Properties

cb
dataStream
err
isSSML
requestId
text

Constructor Details

SynthesisRequest(string, string, boolean, (e: SpeechSynthesisResult) => void, (e: string) => void, IAudioDestination)

new SynthesisRequest(requestId: string, text: string, isSSML: boolean, cb?: (e: SpeechSynthesisResult) => void, err?: (e: string) => void, dataStream?: IAudioDestination)

Parameters

requestId

string

text

string

isSSML

boolean

cb

(e: SpeechSynthesisResult) => void

err

(e: string) => void

dataStream
IAudioDestination

Property Details

cb

cb: (e: SpeechSynthesisResult) => void

Property Value

(e: SpeechSynthesisResult) => void

dataStream

dataStream: IAudioDestination

Property Value

err

err: (e: string) => void

Property Value

(e: string) => void

isSSML

isSSML: boolean

Property Value

boolean

requestId

requestId: string

Property Value

string

text

text: string

Property Value

string