This is a demo project to to demonstrate the Microsoft Speech Services in different usecases. Swiss German is the focus language of this app for both recognition and synthesis.
In the project directory, you can run:
Installs all dependency packages.
Wait for the installation to complete, then you are able to run the app with npm start
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
This app uses different cognitive services by Microsoft which are documented here.
The following are used by this app:
All information on how to setup the services can also be found in the respective links.
To run this app with your own service resources follow the following prerequisite steps:
-
Create a Microsoft account Create account
-
Create an Azure Account Create account The Azure account comes with $200 in service credit that you can apply toward a paid Speech service subscription, valid for up to 30 days. Your Azure services are disabled when your credit runs out or expires at the end of the 30 days.
Official documentation for Speech Service prerequisites
-
Create Azure Resource (Official documentation)
-
Get KEYS and LOCATION/REGION (Official documentation)
-
Enter the subscription-/resourcekey and region
- Option 1: Paste them in the file MySpeechConfig into the
DefaultSpeechConfig
object - Option 2: Paste them in the Configuration Page, when running the app (Button at top right
"Schlüssel konfigurieren"
)
- Option 1: Paste them in the file MySpeechConfig into the
Official documentation to setup QnAMaker with Sdk
- Create a QnA Maker Resource in the Azure Portal and wait until it is deployed
- Create a new
Knowledge Base (KB)
here, Official quick start quide to create KB- Select the same Subscription for the QnA KB as the one from the just created azure QnA resource and select the QnA Resource you just created
- Select your KB language which you cannot change later
- (Optional) Import our KB Questions and Answers Sheet into your KB.
- Select
Publish
to create an endpoint for the KB 5. Get your KB Details by clicking theView Code
button in the KBs overview and copying the theKB ID
andauthEndpointKey
. You also need theQnA Service Name
for the QnA configuration. - Enter the KB ID, authEndpointKey and QnA Service Name:
- Option 1: Paste them in the file QnAConfig into the
DefaultQnAConfig
object - Option 2: Paste them in the Configuration Page, when running the app (Button at top right
"Schlüssel konfigurieren"
)
- Option 1: Paste them in the file QnAConfig into the
-
Create a Translator Resource: Official documentation
-
Copy the subscription key and
- Option 1: Paste them in the file TranslatorConfig into the
DefaultTranslatorConfig
object - Option 2: Paste them in the Configuration Page, when running the app (Button at top right
"Schlüssel konfigurieren"
)
- Option 1: Paste them in the file TranslatorConfig into the
- Create a Bing Search Resource, Offcial documentation
- Copy the subscription Key and
- Option 1: Paste them in the file BingSearchConfig into the
DefaultBingSearchConfig
object - Option 2: Paste them in the Configuration Page, when running the app (Button at top right
"Schlüssel konfigurieren"
)
- Option 1: Paste them in the file BingSearchConfig into the