RC0993

1

votes
1

answer
31

views

How do I pass the model type in boost beast websocket

I am working with c++11, beast library and IBM speech to text web service. The websocket interface (to connect) needs the authentication token as request header while the handshake is performed. Refering to this code available in the Watson documents it looks like I have to pass the model type (if I...
RC0993
1

votes
0

answer
38

views

Is it possible to handle a blocking read function with timeout?

I am working on boost websockets for asynchronous communication between the client and server. Now I am printing the time elapsed during the program with boost::timer::auto_cpu_timer. It is displaying the time elapsed in seconds. My program snippet is given below: This function sends the data to the...
RC0993
1

votes
1

answer
0

views

Build a static library for c++ which is internally dependent on third-party libraries

I want to make a library say libmyfoo.a at a location /home/my/library/libmyfoo.a And I want to use this static library in the simplest form as below: Lets say this is myProgram.cpp #include 'AAA.h' int main(void) { int x = 2; myFooFunction(x); return(0); } I want to run this as g++ -std=c++11 -I/pa...
RC0993
1

votes
1

answer
38

views

Is boost::lockfree::queue (in multithreaded program) lockable?

I am working on a program where, 2+ (gstreamer) boost:: threads and same number of boost:: threads of a dummy application are simultaneously using a queue. Now this queue is used for synchronization between tasks of gstreamer thread with its corresponding dummy application thread. The queue is an EV...
RC0993
1

votes
1

answer
52

views

Resample and depayload audio rtp using gstreamer

I am developing an application where I am using a wave file from a location at one end of a pipeline and udpsink at the other end of it. gst-launch-1.0 filesrc location=/path/to/wave/file/Tornado.wav ! wavparse ! audioconvert ! audio/x-raw,channels=1,depth=16,width=16,rate=44100 ! rtpL16pay ! udpsi...
RC0993
0

votes
0

answer
4

views

Check the end of RTP stream and close gstreamer pipe without check timeout message

I have implemented a gstreamer pipeline which listens to a local port (say 5000) and catches the rtp packet coming on that port. *********************** Current implementation (using c++): *********************** Currently I am taking the rtp packets and depayloading the data into a file. While doin...
RC0993
1

votes
2

answer
0

views

Using gstreamer with google speech api (Streaming Transcribe) in C++

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 recogn...
RC0993
2

votes
0

answer
8

views

Difference between sampling rate, bit rate and bit depth

This is kind of a basic question which might sound too obvious to many of you , but I am getting confused so bad. Here is what a Quora user says. Now It is clear to me what a Sampling rate is - The number of samples you take of a sound signal (in one second) is it's sampling rate. Now my doubt here...
RC0993
1

votes
2

answer
41

views

Call a boost function without callback

I am using boost-beast library for a websocket connection. You can refer to this example for the understanding what is happening. I have used the same example, but changed a few things: split the on_handshake(beast::error_code ec) into three functions A(beast::error_code ec),B(beast::error_code ec)...
RC0993