Skip to content

Correct voice_id to voiceId in Vapi Typescript SDK #561

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

govindup63
Copy link

Description

  • I was trying to use the Vapi TypeScript API to create a new agent.
  • The code snippet listed on the web/documentation uses voice_id, but the SDK expects voiceId (camelCase).
  • This mismatch causes a TypeScript error:
    Object literal may only specify known properties, but 'voice_id' does not exist in type 'PlayHtVoice'. Did you mean to write 'voiceId'?
  • By the way, if you’re looking for an intern who can catch these things (and bring good vibes), I’m your person! Resume here: https://govindup63.github.io/Resume-Achives/

Testing Steps

  • Run the app locally using fern docs dev or navigate to preview deployment
  • Ensure that the changed pages and code snippets work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant