webrtc-speech-to-text icon indicating copy to clipboard operation
webrtc-speech-to-text copied to clipboard

Unable to Install

Open sidharthramesh opened this issue 4 years ago • 4 comments

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

sidharthramesh avatar Apr 29 '20 15:04 sidharthramesh

Yes - exactly the above.

@sidharthramesh: Were you able to solve the issue?

abhinavkulkarni avatar May 22 '20 16:05 abhinavkulkarni

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

You might find it useful.

sidharthramesh avatar May 23 '20 09:05 sidharthramesh

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.

JonghunBok avatar Aug 24 '20 18:08 JonghunBok

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 :)

mattnumbereight avatar Apr 11 '21 20:04 mattnumbereight