[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-73792":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":16,"starSnapshotCount":16,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},73792,"openai-fm","openai\u002Fopenai-fm","openai","Code for openai.fm, a demo for the OpenAI Speech API","https:\u002F\u002Fopenai.fm",null,"TypeScript",2868,7940,998,8,0,1,15,3,66,"MIT License",false,"main",[],"2026-06-12 04:01:11","# OpenAI.fm\n\n[![MIT License](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-MIT-green.svg)](LICENSE)\n![NextJS](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FBuilt_with-NextJS-blue)\n![OpenAI API](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPowered_by-OpenAI_API-orange)\n\n[OpenAI.fm](https:\u002F\u002Fopenai.fm) is an interactive demo to showcase the new OpenAI text-to-speech models.\nIt is built with NextJS and the [Speech API](https:\u002F\u002Fplatform.openai.com\u002Fdocs\u002Fapi-reference\u002Faudio\u002FcreateSpeech).\n\nFor more information about text-to-speech using the OpenAI API, check out our [documentation](https:\u002F\u002Fplatform.openai.com\u002Fdocs\u002Fguides\u002Ftext-to-speech).\n\n![screenshot](.\u002Fpublic\u002Fscreenshot.jpg)\n\n## How to run\n\n1. **Set up the OpenAI API:**\n\n   - If you're new to the OpenAI API, [sign up for an account](https:\u002F\u002Fplatform.openai.com\u002Fsignup).\n   - Follow the [Quickstart](https:\u002F\u002Fplatform.openai.com\u002Fdocs\u002Fquickstart) to retrieve your API key.\n\n2. **Clone the Repository:**\n\n   ```bash\n   git clone https:\u002F\u002Fgithub.com\u002Fopenai\u002Fopenai-fm.git\n   ```\n\n3. **Set the OpenAI API key:**\n\n   2 options:\n\n   - Set the `OPENAI_API_KEY` environment variable [globally in your system](https:\u002F\u002Fplatform.openai.com\u002Fdocs\u002Flibraries#create-and-export-an-api-key)\n   - 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):\n\n   ```bash\n   OPENAI_API_KEY=\u003Cyour_api_key>\n   ```\n\n4. **Install dependencies:**\n\n   Run in the project root:\n\n   ```bash\n   npm install\n   ```\n\n5. **(Optional) Connect to a hosted database:**\n\n   If you want to use the sharing feature, you need to connect to a hosted postgres database.\n   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`.\n\n   ```bash\n   POSTGRES_URL=\"postgresql:\u002F\u002Fusername:password@host:port\u002Fdatabase_name\"\n   ```\n\n   This step is not needed to run the application and only affects the sharing feature.\n\n6. **Run the app:**\n\n   ```bash\n   npm run dev\n   ```\n\n   The app will be available at [`http:\u002F\u002Flocalhost:3000`](http:\u002F\u002Flocalhost:3000).\n\n> [!NOTE]  \n> 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.\n\n## Contributors\n\n### OpenAI team\n\n- [Tyler Smith](https:\u002F\u002Fgithub.com\u002Ftylersmith-openai)\n- [Karolis Kosas](https:\u002F\u002Fgithub.com\u002Fkaroliskosas)\n- [Justin Jay Wang](https:\u002F\u002Fgithub.com\u002Fjustinjaywang)\n- [Bobby Stocker](https:\u002F\u002Fgithub.com\u002Fstocker-openai)\n- [Jeff Harris](https:\u002F\u002Fgithub.com\u002Fjeffsharris)\n- [Romain Huet](https:\u002F\u002Fgithub.com\u002Fromainhuet)\n- [David Weedon](https:\u002F\u002Fgithub.com\u002Fweedon-openai)\n- [Iaroslav Tverdokhlib](https:\u002F\u002Fgithub.com\u002Fitv-openai)\n- [Adam Walker](https:\u002F\u002Fgithub.com\u002Fawalker-openai)\n- [Edwin Arbus](https:\u002F\u002Fx.com\u002Fedwinarbus)\n- [Katia Gil Guzman](https:\u002F\u002Fgithub.com\u002Fkatia-openai)\n\n### Contributing\n\nYou are welcome to open issues or submit PRs to improve this app, however, please note that we may not review all suggestions.\n\n## License\n\nThis project is licensed under the MIT License. See the LICENSE file for details.\n","OpenAI.fm 是一个用于展示OpenAI文本转语音模型的互动演示项目。该项目基于NextJS构建，并利用了OpenAI的Speech API来实现高质量的文字到语音转换功能，支持用户通过简单的界面输入文字并生成自然流畅的语音输出。此外，它还提供了一个可选的数据共享特性，允许用户连接到PostgreSQL数据库以保存和分享生成的音频内容。适用于希望快速体验或集成OpenAI最新语音合成技术的开发者、研究人员以及对人工智能感兴趣的爱好者。",2,"2026-06-11 03:47:23","high_star"]