Rename AI voice options in Bubble


Hello, I am using text to speech with open AI’s api keys. I used a parameter in order to have the users be able to change the voice of their speaker on my bubble app. This is what the key looks like

I then have a list of dropdowns with the different voice values that open ai provides I save that to a custom state and and then use the text value of that custom state as a dynamic value for the voice of the AI speech to text person.

This is all working perfectly but I would like to know if there is a way to rename the voices so that they are more appealing to my users and that way its not obvious that I am using open ai. It is just a preference I have. I was wondering how to rename the voice options in the dropdown while still having the correct Open ai name values be displayed so that the custom voices still work. Any ideas?

Hey @jpdougherty24 :wave:

You can use option set with attributes. Simply, add an attribute to your dropdown called Open AI Equivalent (or something like that). Then, the Display will be the fancy name you choose for your app, the Open AI Equivalent will be whatever you will pass to the API connector:
image

And updating the attributes:

And you can display the display value of the option set in your dropdown:
brave_nNBqAd4u8s

image

image

Good luck :+1:

bdk_512x512 @Huseyin from Flusk | Discover the #1 Security and Monitoring Tool for Bubble

This topic was automatically closed after 70 days. New replies are no longer allowed.