aws / aws-sdk-js-v3

Modularized AWS SDK for JavaScript.
Apache License 2.0
3.13k stars 579 forks source link

Missing VoiceId for Patrick #6685

Open anujgawde opened 1 day ago

anujgawde commented 1 day ago

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

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

zshzbh commented 1 day ago

Hey @anujgawde ,

It seems that you are using this StartSpeechSynthesisTaskCommand from @aws-sdk/client-polly.

I just checked VoiceId page in AWS JS SDK doc, it seems that AWS JS SDK doesn't support Patrick VoiceId.

Please choose other preferred VoiceId.

Thanks! Maggie