/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the polly-2016-06-10.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Polly.Model
{
///
/// Container for the parameters to the DescribeVoices operation.
/// Returns the list of voices that are available for use when requesting speech synthesis.
/// Each voice speaks a specified language, is either male or female, and is identified
/// by an ID, which is the ASCII version of the voice name.
///
///
///
/// When synthesizing speech ( SynthesizeSpeech
), you provide the voice
/// ID for the voice you want from the list of voices returned by DescribeVoices
.
///
///
///
/// For example, you want your news reader application to read news in a specific language,
/// but giving a user the option to choose the voice. Using the DescribeVoices
/// operation you can provide the user with a list of available voices to select from.
///
///
///
/// You can optionally specify a language code to filter the available voices. For example,
/// if you specify en-US
, the operation returns a list of all available US
/// English voices.
///
///
///
/// This operation requires permissions to perform the polly:DescribeVoices
/// action.
///
///
public partial class DescribeVoicesRequest : AmazonPollyRequest
{
private Engine _engine;
private bool? _includeAdditionalLanguageCodes;
private LanguageCode _languageCode;
private string _nextToken;
///
/// Gets and sets the property Engine.
///
/// Specifies the engine (standard
or neural
) used by Amazon
/// Polly when processing input text for speech synthesis.
///
///
public Engine Engine
{
get { return this._engine; }
set { this._engine = value; }
}
// Check to see if Engine property is set
internal bool IsSetEngine()
{
return this._engine != null;
}
///
/// Gets and sets the property IncludeAdditionalLanguageCodes.
///
/// Boolean value indicating whether to return any bilingual voices that use the specified
/// language as an additional language. For instance, if you request all languages that
/// use US English (es-US), and there is an Italian voice that speaks both Italian (it-IT)
/// and US English, that voice will be included if you specify yes
but not
/// if you specify no
.
///
///
public bool IncludeAdditionalLanguageCodes
{
get { return this._includeAdditionalLanguageCodes.GetValueOrDefault(); }
set { this._includeAdditionalLanguageCodes = value; }
}
// Check to see if IncludeAdditionalLanguageCodes property is set
internal bool IsSetIncludeAdditionalLanguageCodes()
{
return this._includeAdditionalLanguageCodes.HasValue;
}
///
/// Gets and sets the property LanguageCode.
///
/// The language identification tag (ISO 639 code for the language name-ISO 3166 country
/// code) for filtering the list of voices returned. If you don't specify this optional
/// parameter, all available voices are returned.
///
///
public LanguageCode LanguageCode
{
get { return this._languageCode; }
set { this._languageCode = value; }
}
// Check to see if LanguageCode property is set
internal bool IsSetLanguageCode()
{
return this._languageCode != null;
}
///
/// Gets and sets the property NextToken.
///
/// An opaque pagination token returned from the previous DescribeVoices
/// operation. If present, this indicates where to continue the listing.
///
///
[AWSProperty(Min=0, Max=4096)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}