|
|
před 2 roky | |
|---|---|---|
| .. | ||
| Images | před 5 roky | |
| Sources | před 2 roky | |
| SpeechToText-gRPC-iOS.xcodeproj | před 3 roky | |
| .gitignore | před 5 roky | |
| Makefile | před 3 roky | |
| README.md | před 3 roky | |
This application demonstrates Bidirectional Streaming to convert streamed audio data into text and display the Server processing live using gRPC Swift, built on top of SwiftNIO. Much of the gRPC specific logic can be found in Sources/SpeechService.swift.
Please be sure to perform the preliminary steps in Examples/Google/README, specifically enabling "Cloud Speech-to-Text API" from Machine Learning section
This project requires a Google Cloud API Key. Please register and create an API key in order to consume the API.
Examples/Google/SpeechToText)make protos to pull the most recent .proto files from the googleapis repositorymake generate to leverage the protoc plugin to generate the Swift interfaces
protoc Plugins. For this tutorial, the Makefile requires that the protoc-gen-grpc-swift and protoc-gen-swift are on the users PATH..xcodeprojConstants.swift file and assign your generated Google Cloud API Key to the apiKey variable.
NOTE: Implementation of the AudioStreamManager is based off of Google's Example Audio Streaming