Go bindings for the Microsoft Cognitive Services Speech SDK
Перейти к файлу
Gerardo Lecaros 7978d49a26
API changes for 1.11 (#5)
2020-03-26 12:12:13 -07:00
.github/workflows SpeechRecognizer bindings. (#3) 2020-03-16 11:33:17 -07:00
audio API changes for 1.11 (#5) 2020-03-26 12:12:13 -07:00
common API changes for 1.11 (#5) 2020-03-26 12:12:13 -07:00
dialog API changes for 1.11 (#5) 2020-03-26 12:12:13 -07:00
samples Adding copyright header to samples. (#4) 2020-03-17 10:49:57 -07:00
speech API changes for 1.11 (#5) 2020-03-26 12:12:13 -07:00
test_files DialogServiceConnector and related objects (#1) 2020-03-06 00:30:17 -08:00
.gitignore Initial commit 2019-11-25 22:00:34 +00:00
CODE_OF_CONDUCT.md Initial CODE_OF_CONDUCT.md commit 2019-11-25 14:00:39 -08:00
LICENSE Initial LICENSE commit 2019-11-25 14:00:38 -08:00
README.md DialogServiceConnector and related objects (#1) 2020-03-06 00:30:17 -08:00
SECURITY.md Initial SECURITY.md commit 2019-11-25 14:00:40 -08:00
go.mod DialogServiceConnector and related objects (#1) 2020-03-06 00:30:17 -08:00

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.