I am using the Google Speech API from cloud platform for getting speech-to-text of a streaming audio. I have already done the REST API calls using curl POST requests for a short audio file using GCP.
I have seen the documentation of the Google Streaming Recognize, which says "Streaming speech recognition is available via gRPC only."
I have gRPC (also protobuf) installed in my OpenSuse Leap 15.0. Here is the screenshot of the directory.
Next I am trying to run the streaming_transcribe example from this link, and I found that the sample program uses a local file as the input but simulate it as a microphone input (catching 64K chunks sequentially) and then send the data to Google server.
For initial tests to check the grpc is correctly set on my system I ran make run_tests. I have changed the Makefile as:
...
...Some text as original Makefile
...
.PHONY: all
all: streaming_transcribe
googleapis.ar: $(GOOGLEAPIS_CCS:.cc=.o)
ar r $@ $?
streaming_transcribe: streaming_transcribe.o parse_arguments.o googleapis.ar
$(CXX) $^ $(LDFLAGS) -o $@
run_tests:
./streaming_transcribe -b 16000 resources/audio.raw
./streaming_transcribe --bitrate 16000 resources/audio2.raw
./streaming_transcribe resources/audio.flac
./streaming_transcribe resources/quit.raw
clean: rm -f *.o streaming_transcribe \
googleapis.ar \
$(GOOGLEAPIS_CCS:.cc=.o)
This do not work well (neither does the orignal Makefile).
But the streaming_transcribe.o file is created after running the Makefile. So I manually ran the file and got the following responses
Any suggestions on how to run the test and use gstreamer instead of the function used for simulating the mic-phone audio?


sreaming_transcribe:is for) - butmakeis picky. The$(CXX) $^ $(LDFLAGS) -o $@line for linkingstreaming_transcribemust start with a tab character. - Ted LyngmoLDFLAGS += -L/usr/local/lib 'pkg-config --libs grpc++ grpc' -Wl,--no-as-needed -lgrpc++_reflection -Wl,--no-as-needed -lprotobuf -lpthread -ldl- RC0993make run_teststo go through. Running*.ofile was not correct anyway. The Makefile produces the executable which needs to be run. How do I mark this issue close? - RC0993