Can i transmit multiple audio Streams to different Clients? [closed] - bash

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 days ago.
Improve this question
im currently working on a VoIP program in bash, using socat. receiving audio from multiple clients, and putting it into named pipes for later use was easy, yet i just cant find a solution on how to take the audio from the pipes, and sending this back to the clients, without they'r own audio pipe, to prevent the clients from hearing themselves. i also don't have a solution for what to do when new clients join.
i have been trying to find a solution for half a week now, any help would be appreciated
a for loop, for every audio pipe except the own one
mixing the audio pipes down into one stream

Related

Is there anyway to monitor the sound card especially from some applications? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I am trying to monitor on my sound card for special frequency and sample rate tones. The interesting tone is from some specific application, like a audio player. After I had searched on google, I could not find any useful ideas or helpful software. I only found some software to monitor my microphone, like Tonedet. It has the similar function as I need, but cound not monitor the audio output (sound card). Is there anyway to monitor my own sound card? As some predefined sound output, then trigger some applications? My system is windows10-64 by the way. Thank you for any useful ideas!
You can use WASAPI to capture the audio that is coming from other applications.
https://learn.microsoft.com/en-us/windows/win32/coreaudio/loopback-recording
As far as listening for a specific tone, you might find the Goertzel algorithm helpful. It's similar to a Fourier Transform, but less computational overhead since you're only focused on a specific frequency.

Do API calls create goroutines? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I was testing things out and noticed that when I made Google API calls, my program would create 2 extra goroutines (went from 1 to 3 goroutines). I feel like this would lead to a problem where too many goroutines are created.
Do API calls create goroutines?
Not inherently. But many implementations of APIs of course will.
I was testing things ... my program would create 2 extra goroutines.
Why do you think this is "extra"? It's probably exactly the right number of goroutines.
I feel like this would lead to a problem where too many goroutines are created.
Don't. You are wrong to feel this way. There's absolutely nothing wrong with using goroutines--that's why they exist.

How to improve performances in UIPath? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
How to improve performances in UIPath? What are the activities can we use in automation to increase performance speed? List out the activities that should be avoid.
First, it is always a good idea to program your RPA with visible actions to make sure that you can achieve the result that you want while seeing the workflow in action, then you can increase performance switching between the input methods (Default, SimulateType, SendWindowMessages) so you can make your RPA work in the background.
https://www.youtube.com/watch?v=fuyRjiXLaRc
As of the output methods, avoid using OCR activities as much as you can since they will slow down your process comparing to (Full text, native).
https://studio.uipath.com/docs/output-or-screen-scraping-methods
If you are working in a citrix environment and you want to interact with an element that doesn't show up immediately avoid using the delay activity since it could not show up in the amount of time that you have programmed, use the wait image activity instead.
https://www.youtube.com/watch?v=EmaQ_BLwgaw

which is best for the client performance [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Which is better, small data size and more server requests, or large data size and fewer requests? Larger data size means longer processing time on ther server. How does this scale out thouh as the number of users and their activity increases?
It is always ideal to get all that you need in as many less calls as you can. If you can get all that you need in one call, definitely do it.
Also it will be very helpful if you can give some insight of what kind of application are we talking about here.

diplomacy game judge algorithm [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am writing a server for playing the great diplomacy game online. Does anyone know an algorithm for the judge, that will calculate all moves/supports/convoys on the map at the end at each round?
For implementing the protocol I use twisted, for db-access django
Yes. DPjudge Adjudication Algorithm. Also see the DPJudge FAQ answer to the question about convoy paradoxes.
A check the njudge page that links to source code.
You might also want to look into the DAIDE project. They have a full comm protocol for create dip bot players against special servers. It's not open source (unfortunately) but there is a small community who use it to play real-time Dip games when 7 humans aren't available to play.

Resources