livekit-examples / realtime-playground

Play with OpenAI's new Realtime API in your browser
https://playground.livekit.io
Apache License 2.0
210 stars 65 forks source link

feat(web): add new voice options to VoiceId and voices array #28

Open xbasset opened 1 day ago

xbasset commented 1 day ago

Description

This pull request introduces new voices recently added by OpenAI: https://platform.openai.com/docs/guides/realtime#voices

These voices are integrated into the dropdown list for selection.

Why is this useful?

The new voices provided by OpenAI are significantly more expressive, offering a better user experience through improved voice quality and expressiveness.

How it works

The modification involves adding references to the new voices within the voices data interface, ensuring they are available for use in the project.

Changes

Testing

image

Additional Notes

Troubleshooting

You might need to clear the package-lock.json to make sure the latest openai lib is used