Method WriteStreamToFile
WriteStreamToFile(Stream, String)
Writes the AudioStream returned from the call to SynthesizeSpeechAsync to a file in MP3 format.
Declaration
protected void WriteStreamToFile(Stream audioStream, string outputFileName)
Parameters
Type | Name | Description |
---|---|---|
Stream | audioStream | The AudioStream returned from the call to the SynthesizeSpeechAsync method. |
System.String | outputFileName | The full path to the file in which to save the audio stream. |