Overseas access: www.kdjingpai.com
Bookmark Us
Current Position:fig. beginning " AI Answers

How do I add a new voice option to openai-fm?

2025-08-24 1.6 K

To add a new voice option to openai-fm, proceed as follows:

  1. Positioning Profiles: In the project directory, find thedata/voices.jsonfile, which is where all voice configurations are stored
  2. Understanding the Configuration Structure: Each voice option is an object containingid(unique identifier),label(display name) andvalue(corresponding to the parameter values of the OpenAI API)
  3. Add new entry: Add a new voice configuration object to the json array in the format referenced in the existing entry
  4. Save changes: Ensure that files are saved in a valid JSON format
  5. restart sth.: The development server needs to be restarted (npm run dev) to make the changes effective
  6. test and verify: You should see the new option in the voice selection drop-down list in the web interface

Needs attention:

  • addedvalueMust be a valid speech identity supported in the OpenAI API
  • It is recommended to backup the original file before modification
  • If there are other developers sharing the use of this project, the source of the added voice needs to be stated in the documentation

With this approach, developers can easily extend the voice options supported by the project to meet specific needs.

Recommended

Can't find AI tools? Try here!

Just type in the keyword Accessibility Bing SearchYou can quickly find all the AI tools on this site.

Top