Amazon.Polly.AmazonPollyClient.SynthesizeSpeech C# (CSharp) Метод

SynthesizeSpeech() публичный Метод

Synthesizes UTF-8 input, plain text or SSML, to a stream of bytes. SSML input must be valid, well-formed SSML. Some alphabets might not be available with all the voices (for example, Cyrillic might not be read at all by English voices) unless phoneme mapping is used. For more information, see How it Works.
/// The specified sample rate is not valid. /// /// The SSML you provided is invalid. Verify the SSML syntax, spelling of tags and values, /// and then try again. /// /// Amazon Polly can't find the specified lexicon. This could be caused by a lexicon that /// is missing, its name is misspelled or specifying a lexicon that is in a different /// region. /// /// /// /// Verify that the lexicon exists, is in the region (see ListLexicons) and that /// you spelled its name is spelled correctly. Then try again. /// /// /// An unknown condition has caused a service failure. /// /// The value of the "Text" parameter is longer than the accepted limits. The limit for /// input text is a maximum of 3000 characters total, of which no more than 1500 can be /// billed characters. SSML tags are not counted as billed characters. ///
public SynthesizeSpeech ( SynthesizeSpeechRequest request ) : SynthesizeSpeechResponse
request Amazon.Polly.Model.SynthesizeSpeechRequest Container for the necessary parameters to execute the SynthesizeSpeech service method.
Результат Amazon.Polly.Model.SynthesizeSpeechResponse
        public SynthesizeSpeechResponse SynthesizeSpeech(SynthesizeSpeechRequest request)
        {
            var marshaller = new SynthesizeSpeechRequestMarshaller();
            var unmarshaller = SynthesizeSpeechResponseUnmarshaller.Instance;

            return Invoke<SynthesizeSpeechRequest,SynthesizeSpeechResponse>(request, marshaller, unmarshaller);
        }