{"id":38213181,"url":"https://github.com/tsjdev-apps/openai-speechtotext-texttospeech","last_synced_at":"2026-01-17T00:45:12.621Z","repository":{"id":237338558,"uuid":"792995256","full_name":"tsjdev-apps/openai-speechtotext-texttospeech","owner":"tsjdev-apps","description":"Simple .NET console application to demonstrate Speech-to-Text and Text-to-Speech using OpenAI and/or Azure OpenAI.","archived":false,"fork":false,"pushed_at":"2024-05-06T16:17:28.000Z","size":200,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-06T17:39:03.863Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/tsjdev-apps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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},"funding":{"github":"tsjdev-apps"}},"created_at":"2024-04-28T06:06:00.000Z","updated_at":"2024-05-06T16:17:30.000Z","dependencies_parsed_at":"2024-05-06T17:49:39.795Z","dependency_job_id":null,"html_url":"https://github.com/tsjdev-apps/openai-speechtotext-texttospeech","commit_stats":null,"previous_names":["tsjdev-apps/openai-speechtotext-texttospeech"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tsjdev-apps/openai-speechtotext-texttospeech","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsjdev-apps%2Fopenai-speechtotext-texttospeech","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsjdev-apps%2Fopenai-speechtotext-texttospeech/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsjdev-apps%2Fopenai-speechtotext-texttospeech/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsjdev-apps%2Fopenai-speechtotext-texttospeech/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsjdev-apps","download_url":"https://codeload.github.com/tsjdev-apps/openai-speechtotext-texttospeech/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsjdev-apps%2Fopenai-speechtotext-texttospeech/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28490532,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T23:55:29.509Z","status":"ssl_error","status_checked_at":"2026-01-16T23:55:29.108Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2026-01-17T00:45:12.516Z","updated_at":"2026-01-17T00:45:12.592Z","avatar_url":"https://github.com/tsjdev-apps.png","language":"C#","funding_links":["https://github.com/sponsors/tsjdev-apps","https://www.buymeacoffee.com/tsjdevapps"],"categories":[],"sub_categories":[],"readme":"# Speech-To-Text and Text-To-Speech with (Azure) OpenAI\n\n![Header](./docs/header.webp)\n\nThis repository contains a simple console application written in .NET 8 to demonstrate how to use Speech-To-Text (STT) and Text-To-Speech (TTS) of [OpenAI](https://openai.com) and/or [Azure OpenAI](https://azure.microsoft.com/en-us/products/ai-services/openai-service) using the [Azure.AI.OpenAI](https://www.nuget.org/packages/Azure.AI.OpenAI/) NuGet package.\n\n\n## Usage\n\nYou need to create an OpenAI account on this [website](https://platform.openai.com/docs/overview). You have to pay to use the API so make sure that you add your payment information. After that, you can create an API Key [here](https://platform.openai.com/api-keys) for further use. If you have access to an Azure OpenAI instance you can also use this instance for the demo application.\n\nJust run the app and follow the steps displayed on the screen.\n\n\n## Screenshots\n\nHEre you can se the console application in action.\n\nFirst you need to select the host.\n\n![App](./docs/sample-01.png)\n\nYou need to enter the needed properties, like endpoints or API keys. Finally you can select the mode.\n\n![App](./docs/sample-02.png)\n\nIf you select `Speech-To-Text` you need to specify the path to an audio file. Finally you will get a transcription of the audio file.\n\n![App](./docs/sample-03.png)\n\nIf you select `Text-To-Speech` you need to provide a text.\n\n![App](./docs/sample-04.png)\n\nYou also need to select one of the six predefined voices.\n\n![App](./docs/sample-05.png)\n\nFinally a MP3 file be generated and downloaded to your machine.\n\n![App](./docs/sample-06.png)\n\n\n## Blog Posts / YouTube Video\n\nIf you are more interested into details, please see the following posts on [medium.com](https://www.medium.com) or in my [personal blog](https://www.tsjdev-apps.de):\n\n- [Use OpenAI’s Text-To-Speech API to create audio files](https://medium.com/medialesson/use-openais-text-to-speech-api-to-create-audio-files-62e1f253206c)\n- [Use OpenAI’s Speech-To-Text API to transcribe audio files](https://medium.com/medialesson/use-openais-speech-to-text-api-to-transcribe-audio-files-f66dd3d7d134)\n- [Einrichtung von OpenAI](https://www.tsjdev-apps.de/einrichtung-von-openai/)\n- [Einrichtung von Azure OpenAI](https://www.tsjdev-apps.de/einrichtung-von-azure-openai/)\n\nYou can also watch the following video on my [YouTube channel](https://www.youtube.com/@tsjdevapps):\n- [Speech-To-Text und Text-To-Speech mit (Azure) OpenAI](https://www.youtube.com/watch?v=UQQKzL9f2gE)\n\n\n## Buy Me A Coffee\n\nI appreciate any form of support to keep my _Open Source_ activities going.\n\nWhatever you decide, be it reading and sharing my blog posts, using my NuGet packages or buying me a coffee/book, thank you ❤️.\n\n\u003ca href=\"https://www.buymeacoffee.com/tsjdevapps\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/default-yellow.png\" alt=\"Buy Me A Coffee\" height=\"41\" width=\"174\"\u003e\u003c/a\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsjdev-apps%2Fopenai-speechtotext-texttospeech","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsjdev-apps%2Fopenai-speechtotext-texttospeech","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsjdev-apps%2Fopenai-speechtotext-texttospeech/lists"}