Skip to content

tianyiliuMSFT/speech-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This demo utilizes Azure OpenAI and Azure AI Foundry Text-To-Speech (TTS) service. It acts as a language tutor that assists users to study new languages.

Workflow

  1. User needs to configure the Azure OpenAI (OpenAI Key, deployment, OpenAI Account) and Speech Service (SpeechKey, region)
  2. The program takes input from the user.
  3. The input is sent to the Azure OpenAI model.
  4. The response is then returned as text.
  5. The text is sent to TTS Service and a voice is being played.

Prerequisites

Build the sample

  • Edit the Program.cs source:
    • Replace the string OpenAIKey and OpenAIAccount with your own AzureOpenAI key and account.
    • Replace the string DeploymentName. You can find this deployment name in Playgrounds - Chat - Deployment.
    • Replace the string SpeechKey and Region. You can find them on Azure AI Foundry - Overview. SpeechKey is API Key.

Run the sample

Using Visual Studio

To debug the app and then run it, press F5 or use Debug > Start Debugging. To run the app without debugging, press Ctrl+F5 or use Debug > Start Without Debugging.

Using the .NET Core CLI

Run the following command from the directory that contains this sample:

dotnet LanguageTutor/bin/Debug/net8.0/LanguageTutor.dll

References

About

AI School

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages