18833bf793 | ||
---|---|---|
.github/workflows | ||
audio | ||
common | ||
dialog | ||
samples | ||
speech | ||
test_files | ||
.gitignore | ||
CODE_OF_CONDUCT.md | ||
LICENSE | ||
README.md | ||
SECURITY.md | ||
go.mod |
README.md
Overview
This project contains Golang binding for the Microsoft Cognitive Service Speech SDK.
Getting Started
This project requires Go 3.13
Linux
Compiling
First, you new need to set the environment variables for Go to find the SDK:
export CGO_CFLAGS="-I/path/to/SDKs/include/c_api"
export CGO_LDFLAGS="-L/path/to/SDKs/library -lMicrosoft.CognitiveServices.Speech.core"
After that we are ready to compile the package
Running
To run applications consuming this project, we need to add the library to the path (if it is not there already)
export LD_LIBRARY_PATH="/path/to/SDKs/library:$LD_LIBRARY_PATH"
Running Tests
In addition to the environment variables needed to run applications, running tests requires setting the following variables:
export TEST_SUBSCRIPTION_KEY="your_subscription_key"
export TEST_SUBSCRIPTION_REGION="your_region"
Contributing
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.