Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
O

openai-fm

> 编程语言
Open source

Code for openai.fm, a demo for the OpenAI Speech API

2.9K stars0 likes0 views
WebsiteGitHub

About

Code for openai.fm, a demo for the OpenAI Speech API

OpenAI.fm

OpenAI.fm is an interactive demo to showcase the new OpenAI text-to-speech models. It is built with NextJS and the Speech API.

For more information about text-to-speech using the OpenAI API, check out our documentation.

How to run

  1. Set up the OpenAI API:

    • If you're new to the OpenAI API, sign up for an account.
    • Follow the Quickstart to retrieve your API key.
  2. Clone the Repository:

    git clone https://github.com/openai/openai-fm.git
    
  3. Set the OpenAI API key:

    2 options:

    • Set the OPENAI_API_KEY environment variable globally in your system
    • Set the OPENAI_API_KEY environment variable in the project: Create a .env file at the root of the project and add the following line (see .env.example for reference):
    OPENAI_API_KEY=<your_api_key>
    
  4. Install dependencies:

    Run in the project root:

    npm install
    
  5. (Optional) Connect to a hosted database:

    If you want to use the sharing feature, you need to connect to a hosted postgres database. You should set the environment variables in a .env file at the root of the project to connect to your database as shown in .env.example.

    POSTGRES_URL="postgresql://username:password@host:port/database_name"
    

    This step is not needed to run the application and only affects the sharing feature.

  6. Run the app:

    npm run dev
    

    The app will be available at http://localhost:3000.

[!NOTE]
Be aware that if you deploy this app to a public server, you are responsible for any usage it may incur using your OpenAI API key.

Contributors

OpenAI team

  • Tyler Smith
  • Karolis Kosas
  • Justin Jay Wang
  • Bobby Stocker
  • Jeff Harris
  • Romain Huet
  • David Weedon
  • Iaroslav Tverdokhlib
  • Adam Walker
  • Edwin Arbus
  • Katia Gil Guzman

Contributing

You are welcome to open issues or submit PRs to improve this app, however, please note that we may not review all suggestions.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言