rviscarra / webrtc-speech-to-text

Speech transcription on the browser using WebRTC and Google Speech
MIT License
121 stars 24 forks source link

Unable to Install #2

Open sidharthramesh opened 4 years ago

sidharthramesh commented 4 years ago

It says opusfile package not found. Any idea which package to install? This is on Windows Subsystem Linux.

go build -o transcribe-server ./cmd/transcribe-server/main.go
# pkg-config --cflags  -- opus opus opus opusfile opus opusfile
Package opusfile was not found in the pkg-config search path.
Perhaps you should add the directory containing `opusfile.pc'
to the PKG_CONFIG_PATH environment variable
No package 'opusfile' found
Package opusfile was not found in the pkg-config search path.
Perhaps you should add the directory containing `opusfile.pc'
to the PKG_CONFIG_PATH environment variable
No package 'opusfile' found
pkg-config: exit status 1
Makefile:7: recipe for target 'default' failed
make: *** [default] Error 2
abhinavkulkarni commented 4 years ago

Yes - exactly the above.

@sidharthramesh: Were you able to solve the issue?

sidharthramesh commented 4 years ago

@abhinavkulkarni I started using this instead: https://github.com/vin-ni/Google-Cloud-Speech-Node-Socket-Playground.git

You might find it useful.

JonghunBok commented 4 years ago

I came across the same problem while building this repo in a container. In my case, after sudo apt install libopus-dev libopusfile-dev building succeeded.

mattnumbereight commented 3 years ago

Thanks @JonghunBok :) this worked for me - I have spent hours trying to get this working, I use this for running unit tests for Vector the Robot using the OSKR - (open source software development kit)

Thank you :)