{"id":24810565,"url":"https://github.com/iiinvent/azure-openai-realtime","last_synced_at":"2026-02-17T10:32:48.791Z","repository":{"id":270663606,"uuid":"910860835","full_name":"iiinvent/azure-openai-realtime","owner":"iiinvent","description":"Created using Codeium Windsurf and some patience!","archived":false,"fork":false,"pushed_at":"2025-01-09T02:11:45.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T13:24:03.359Z","etag":null,"topics":["ai-services","azure","chatbot","openai","python3","realtime","voice-to-voice"],"latest_commit_sha":null,"homepage":"https://ai.azure.com/resource/playground","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iiinvent.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-01T16:52:46.000Z","updated_at":"2025-01-18T16:32:52.000Z","dependencies_parsed_at":"2025-01-02T08:42:40.155Z","dependency_job_id":null,"html_url":"https://github.com/iiinvent/azure-openai-realtime","commit_stats":null,"previous_names":["iiinvent/azure-openai-realtime"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iiinvent%2Fazure-openai-realtime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iiinvent%2Fazure-openai-realtime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iiinvent%2Fazure-openai-realtime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iiinvent%2Fazure-openai-realtime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iiinvent","download_url":"https://codeload.github.com/iiinvent/azure-openai-realtime/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248449912,"owners_count":21105584,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-services","azure","chatbot","openai","python3","realtime","voice-to-voice"],"created_at":"2025-01-30T12:17:15.570Z","updated_at":"2025-10-08T20:59:07.621Z","avatar_url":"https://github.com/iiinvent.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Azure Voice Chat Assistant\n\nA real-time voice chat application using Azure OpenAI and Azure Speech Services.\n\n## Features\n\n- Text-to-Speech conversion\n- Speech-to-Text recognition\n- Interactive Voice Chat with AI\n- Real-time streaming responses\n- Debug mode for development\n\n## Prerequisites\n\n1. Python 3.8 or higher\n2. Azure OpenAI Service subscription\n3. Azure Speech Services subscription\n4. Visual Studio Build Tools with C++ workload (for PyAudio installation)\n\n## Installation\n\n1. Clone this repository:\n```bash\ngit clone https://github.com/iiinvent/azure-openai-realtime\ncd azure-openai-realtime\n```\n\n2. Install PyAudio (Windows):\n```bash\npip install pipwin\npipwin install pyaudio\n```\n\nFor other operating systems or if you encounter issues, see [PyAudio Installation Guide](https://people.csail.mit.edu/hubert/pyaudio/).\n\n3. Install other dependencies:\n```bash\npip install -r requirements.txt\n```\n\n## Configuration\n\n1. Create a `.env` file in the project root with the following content:\n```env\nSPEECH_KEY=your_speech_key\nSPEECH_REGION=your_speech_region\nAZURE_OPENAI_KEY=your_openai_key\nAZURE_OPENAI_ENDPOINT=your_openai_endpoint\nAZURE_OPENAI_DEPLOYMENT=your_deployment_name\n```\n\n2. Replace the placeholder values with your actual Azure credentials:\n   - `SPEECH_KEY`: Your Azure Speech Services key\n   - `SPEECH_REGION`: Region of your Speech Services (e.g., eastus2)\n   - `AZURE_OPENAI_KEY`: Your Azure OpenAI key\n   - `AZURE_OPENAI_ENDPOINT`: Your Azure OpenAI realtime endpoint\n   - `AZURE_OPENAI_DEPLOYMENT`: Your Azure OpenAI model deployment name\n\n## Usage\n\nRun the application:\n```bash\npython chat.py\n```\n\nFor debug mode with detailed logging:\n```bash\npython chat.py --debug\n```\n\n### Available Options\n\n1. Text-to-Speech: Convert written text to spoken audio\n2. Speech-to-Text: Convert your voice to text\n3. Voice Chat with AI: Have a conversation with the AI assistant\n4. Exit: Close the application\n\n### Voice Chat Commands\n\n- Say \"exit\" to end the conversation\n- Wait for the \"Listening...\" prompt before speaking\n- Speak clearly and naturally\n\n## Troubleshooting\n\n1. PyAudio Installation Issues:\n   - Make sure Visual Studio Build Tools with C++ workload is installed\n   - Try installing the appropriate PyAudio wheel from [Unofficial Windows Binaries](https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio)\n\n2. Audio Device Issues:\n   - Ensure your microphone is properly connected and set as the default input device\n   - Check Windows privacy settings to allow microphone access\n\n3. Connection Issues:\n   - Verify your Azure credentials in the .env file\n   - Check your internet connection\n   - Run in debug mode to see detailed error messages: `python chat.py --debug`\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiiinvent%2Fazure-openai-realtime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiiinvent%2Fazure-openai-realtime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiiinvent%2Fazure-openai-realtime/lists"}