Skip to content
v2.278.0

VoiceSettingsProperty ​

Struct External

Defines settings for using an Amazon Polly voice to communicate with a user.

Valid values include:

  • standard
  • neural
  • long-form
  • generative

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lex as lex } from 'aws-cdk-lib';
const voiceSettingsProperty: lex.CfnBot.VoiceSettingsProperty = {
  voiceId: 'voiceId',

  // the properties below are optional
  engine: 'engine',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lex as lex

voice_settings_property = lex.CfnBot.VoiceSettingsProperty(
    voice_id="voiceId",

    # the properties below are optional
    engine="engine"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lex.*;

VoiceSettingsProperty voiceSettingsProperty = VoiceSettingsProperty.builder()
        .voiceId("voiceId")

        // the properties below are optional
        .engine("engine")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lex;

var voiceSettingsProperty = new VoiceSettingsProperty {
    VoiceId = "voiceId",

    // the properties below are optional
    Engine = "engine"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

voiceSettingsProperty := &VoiceSettingsProperty{
	VoiceId: jsii.String("voiceId"),

	// the properties below are optional
	Engine: jsii.String("engine"),
}

Properties ​

engineoptionalstringengineoptionalstrengineoptionalStringEngineoptionalstringEngineoptional*string #
Indicates the type of Amazon Polly voice that Amazon Lex should use for voice interaction with the user.
notes

For more information, see the engine parameter of the SynthesizeSpeech operation in the Amazon Polly developer guide .

If you do not specify a value, the default is standard .

voiceIdstringvoice_idstrvoiceIdStringVoiceIdstringVoiceId*string required #
The identifier of the Amazon Polly voice to use.