This app is speech translator and recorder using Azure AI Speech.
- Create Azure AI Speech resource. (Bicep)
- Copy
Subscription KeyandRegionfrom Azure Portal. - Clone this repository.
- Create
src/SpeechTranslatorConsole/appsettings.Development.json. - Setup
appsettings.Development.jsonlike below.{ "Settings": { "Region": "<Region>", "SubscriptionKey": "<Subscription Key>" } } - Set the microphone device for translation as the default input device.
- Run
SpeechTranslatorConsoleproject. (dotnet run --project src/SpeechTranslatorConsole) - Type file name in console.
- Create Azure AI Speech resource. (Bicep)
- Set the microphone device for translation as the default input device.
- Run the desktop project.
dotnet run --project src/SpeechTranslatorDesktop
- In the
Azure AI Service 設定section, enter the Azure AI SpeechRegionandAPI Key, then click保存.- Settings are stored in SQLite at
%LocalAppData%\SpeechTranslatorDesktop\speech-translator-desktop.db. - The API key is protected with Windows DPAPI before it is written to SQLite.
- Saved settings are automatically loaded the next time the app starts.
- Settings are stored in SQLite at
- If you do not save settings in the app, the desktop app falls back to the
SPEECH_REGIONandSPEECH_KEYenvironment variables.$env:SPEECH_REGION="japaneast" $env:SPEECH_KEY="your-speech-key"
- Select the speaker language and target language.
- Optionally enter a simple recording file name stem (letters/numbers/
-/_, no path or extension). If empty, no file is saved. - Click
開始to start and停止to stop.
Recording files are saved as UTF-8 text files under recordings/ relative to the desktop app executable directory.