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
- Host: GitHub
- URL: https://github.com/jongfeel/stt-hololens
- Owner: jongfeel
- License: mit
- Created: 2020-03-10T11:16:39.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-10T09:03:32.000Z (over 6 years ago)
- Last Synced: 2025-02-23T17:06:22.704Z (over 1 year ago)
- Size: 4.43 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
- 
- 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
- 
- 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