An open API service indexing awesome lists of open source software.

https://github.com/jongfeel/stt-hololens

Unity translation app using Google Cloud Speech-to-Text on Hololens
https://github.com/jongfeel/stt-hololens

Last synced: 5 months ago
JSON representation

Unity translation app using Google Cloud Speech-to-Text on Hololens

Awesome Lists containing this project

README

          

# STT-Hololens

Unity translation app using Google Cloud

- Speech-to-Text: get result text
- Translate text: get translated english text
- Text-to-Speech: get english sound file

on Hololens

## Developement environment

### Tools

- Unity 2019.3.4f1
- Add modules `Universal Windows Platform Build Support`, 2.1GB
- Pacakges
- Windows Mixed Reality 4.2.1
- Visual Studio Community 2019 16.4.5
- Add workloads `Game development with Unity` (Unity)
- Add workloads `Desktop development with C++` (UWP)
- Add workloads `Universal Windows Platform development` (UWP)

### Device

- Hololens OS build 10.0.17763.1039

## Preference setup

- Create `APIKey.txt` file.
- Copy google api key string to file in edit mode
- Windows Store Apps point of reference doc
- https://docs.unity3d.com/ScriptReference/Application-persistentDataPath.html

## Build UWP project in Unity

- Open Unity project scene from Assets/Scenes/STT_Hololens.scene
- Open Build Settigs popup `Ctrl+Shift+B` or `File > BuildSettings...`
- Checkout build options
- ![UnityBuildSettings.png](UnityBuildSettings.png)
- Click `Build` button
- Select exist folder to UWP project target.

## Build Hololens app in UWP project

- Open Visual Studio Solution file from <`BuildFromUnityFolder`>/STT-Hololens.sln
- Checkout build options
- ![VisualStudioBuildSettings.png](VisualStudioBuildSettings.png)
- Solution configurations: Release or Master
- Solution platforms: x86
- Build to target: Device(hololens)
- Click Deivce(Debug run) button

## Reference Google Cloud APIs

- https://cloud.google.com/speech-to-text/docs
- https://cloud.google.com/translate/docs
- https://cloud.google.com/text-to-speech/docs