Comments (2)
@wxbool Could you please try with following instructions for Windows.
Pre-requisites:
- Install MSYS2 (needed for gcc compiler for Windows) from https://www.msys2.org/
- Install nuget.exe from https://learn.microsoft.com/en-us/nuget/install-nuget-client-tools
- Nuget.exe installation is below assumed to be in c:/nuget folder
In MinGW terminal:
-
Install gcc required by cgo
$ pacman -S mingw-w64-ucrt-x86_64-gcc -
Install Speech SDK
$ export SPEECHSDK_ROOT=/c/temp/speechsdk
$ mkdir -p "$SPEECHSDK_ROOT"
$ /c/nuget/nuget install Microsoft.CognitiveServices.Speech -o $SPEECHSDK_ROOT -
Set CGO flags for compiler/linker
$ export CGO_CFLAGS="-I$SPEECHSDK_ROOT/Microsoft.CognitiveServices.Speech.1.25.0/build/native/include/c_api"
$ export CGO_LDFLAGS="-L$SPEECHSDK_ROOT/Microsoft.CognitiveServices.Speech.1.25.0/build/native/x64/Release -lMicrosoft.CognitiveServices.Speech.core" -
Copy Speech SDK dlls to the same folder with Go sample
$ cd /c//cognitive-services-speech-sdk-go/samples
$ cp /c/temp/speechsdk/Microsoft.CognitiveServices.Speech.1.25.0/runtimes/win-x64/native/*.dll . -
Build and run the sample
$ /c/'Program Files'/go/bin/go clean
$ /c/'Program Files'/go/bin/go build$ /c/'Program Files'/go/bin/go run main.go /c/temp/whatstheweatherlike.wav speech_recognizer:RecognizeOnceFromWavFile
Session Started (ID= XXX )
Session Stopped (ID= XXX)
Got a recognition!
What's the weather like?
from cognitive-services-speech-sdk-go.
Closing due to inactivity
from cognitive-services-speech-sdk-go.
Related Issues (20)
- Platform support request: Windows (Go) HOT 5
- Unable to run on Mac Again! HOT 1
- How to set timeout(sensitivity) to make audio recognition work? HOT 2
- github.com\Microsoft\cognitive-services-speech-sdk-go\common\error.go:10:11: fatal error: speechapi_c_error.h: No such file or directory // #include <speechapi_c_error.h> HOT 3
- Auto Detect Source language is giving result only in the last element of the Source Language Configuration List
- Received a cancellation: Web socket is not open. HOT 2
- run to_audio_data_stream.go and write into file wav cant open wav HOT 4
- Docs: streaming HOT 5
- Compressed ulaw file is not recognising. HOT 4
- Platform support request: Fedora Linux HOT 1
- Compilation Error after updating the SDK version to >=1.21.0. Error: could not determine kind of name for C.synthesizer_event_get_text HOT 2
- Platform support request: Windows HOT 1
- `Timed out` after `session started` HOT 2
- Question: Can I auto detect language in .wav and transcript language with that language ? HOT 4
- fatal error: checkptr: pointer arithmetic computed bad pointer value HOT 1
- An undefined: `speech.SpeechSynthesisOutput` error occurred in go1.20. How can I resolve it HOT 2
- Missing dependency: ca-certificates HOT 1
- How to recognise the full text for multi utterances within an audio file immediately HOT 3
- Mem leak when using NewAudioDataStreamFromSpeechSynthesisResult to read audio HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cognitive-services-speech-sdk-go.