Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing VoiceId for Patrick #6685

Closed
3 of 4 tasks
anujgawde opened this issue Nov 21, 2024 · 3 comments
Closed
3 of 4 tasks

Missing VoiceId for Patrick #6685

anujgawde opened this issue Nov 21, 2024 · 3 comments
Assignees
Labels
guidance General information and guidance, answers to FAQs, or recommended best practices/resources. p2 This is a standard priority issue

Comments

@anujgawde
Copy link

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

@anujgawde anujgawde added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Nov 21, 2024
@zshzbh
Copy link
Contributor

zshzbh commented Nov 22, 2024

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

@zshzbh zshzbh added guidance General information and guidance, answers to FAQs, or recommended best practices/resources. p2 This is a standard priority issue closing-soon This issue will automatically close in 4 days unless further comments are made. and removed needs-triage This issue or PR still needs to be triaged. bug This issue is a bug. labels Nov 22, 2024
@zshzbh zshzbh self-assigned this Nov 22, 2024
@anujgawde
Copy link
Author

Hey @zshzbh ,

Thanks for sharing the info! I’ll update the implementation and choose an alternate VoiceId from the supported options. Appreciate the heads-up!

Best regards,
Anuj

@github-actions github-actions bot removed the closing-soon This issue will automatically close in 4 days unless further comments are made. label Nov 26, 2024
@zshzbh zshzbh closed this as completed Nov 27, 2024
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
guidance General information and guidance, answers to FAQs, or recommended best practices/resources. p2 This is a standard priority issue
Projects
None yet
Development

No branches or pull requests

2 participants