Skip to content

Missing VoiceId for Patrick #6685

@anujgawde

Description

@anujgawde

Checkboxes for prior research

Describe the bug

I am trying to build a text-to-speech feature which will be able to read long articles. I found voice name 'Patrick, Male' suitable for my use case (tested on the console). When I try to pass the VoiceId from my Node.js application, the IDE prompts me that the VoiceId does not exist in the model.

Regression Issue

  • Select this option if this issue appears to be a regression.

SDK version number

@aws-sdk/package-name@version^3.693.0

Which JavaScript Runtime is this issue in?

Node.js

Details of the browser/Node.js/ReactNative version

v20.10.0

Reproduction Steps

      const params = {
        OutputS3BucketName: process.env.AWS_TTS_BUCKET_NAME,
        OutputS3KeyPrefix: keyPrefix,
        OutputFormat: OutputFormat.MP3,
        Text: textContent,
        Engine: Engine.LONG_FORM,
        
        // Voice Id for Patrick is missing from the model (This will result in an error):
        VoiceId: VoiceId.Patrick,
      };

      // Start speech synthesis task
      const command = new StartSpeechSynthesisTaskCommand(params);
      const response = await this.pollyClient.send(command);

Observed Behavior

The IDE does not let me pass my desired VoiceId

Screenshot 2024-11-21 at 3 15 59 PM

Expected Behavior

I should be able to use my desired VoiceId

Possible Solution

Update the VoiceId model to include a value for 'Patrick'

Additional Information/Context

No response

Metadata

Metadata

Assignees

Labels

guidanceGeneral information and guidance, answers to FAQs, or recommended best practices/resources.p2This is a standard priority issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions