|
Dear All and Ivar Lumi!
Dear All and Ivar Lumi!
Current i have a problem about read files cdr in PBX over serial port (COM). So that i need to help of everybody anh Ivar Lumi. if everybody send for me the example about it
.
Thanks you very much!
đ
|
|
|
|
|
Is it possible using your library to stream to multiple clients.
Like you want to after speaking to a microphone send that audio to multiple listeners?
|
|
|
|
|
>Is it possible using your library to stream to multiple clients.
Yes you can steream to multiple endpoints.
also you can receive audio from multiple endpoints, but audio mixing is not implemented.
|
|
|
|
|
First of all, thank you Mr. Ivan for such a good code.
I have used your library + examples in my final year project, but I want to know,
for the beginning, I just want to record and play the sound only in 1 computer, but I got something wrong, the speaker didn't play the sound that captured from the mic. It was only produced sound like an impulse, only "bip bip bip".
|
|
|
|
|
Hi,
Normally this happens when you record one hz/bits and paly on another hz/bits ... .
|
|
|
|
|
hmm.. where can I checked the hz/bit from the code?
|
|
|
|
|
In code you alwyas set hz/bit for audio recorder class and player, otherwise you nver can play raw audio data.
|
|
|
|
|
These ones did you mean?
m_pWaveIn = new WaveIn(WaveIn.Devices[0], 8000, 16, 1, 400);
m_pWaveOut = new WaveOut(WaveOut.Devices[0], 8000, 16, 1);
|
|
|
|
|
|
hmm.. I have set the hz/bit for both recorder and player in the same value, but the sound didn't play correctly, maybe do you have any experience for my problem?
|
|
|
|
|
Then there can be only timing issues. You don't play audio samples with right rate(ms).
|
|
|
|
|
sorry to bother you again Mr. Ivan. But I want to know, why there are so much noise? The noise almost covered all the sound. How to clear the noise or at least, the noise is much more quiet than my voice..
|
|
|
|
|
If you are sending through netowrk, fisrt you may try send locally. This shows if network delay causes it.
|
|
|
|
|
Actually, I just use this program to receive the sound from the mic and directly play the recorded sound in the same computer. If I use your program with using the same ip address for sender and receiver, the result is still the same. there are so much noise.
|
|
|
|
|
|
hmm.. still the same. in the output the sound that heard was like a robot.
|
|
|
|
|
Hi,
When I am using this code to encode/decode audio,
Sometimes there is significant delay in the audio reaching the listener.
For eg, someone says something on a microphone and it takes maybe 10 seconds for the listener at the other end to hear it...
Maybe its a network issue and there is nothing I can do about it but I was wondering if there was anything I could do to make this delay less.
Thanks
|
|
|
|
|
|
This delay problem seems also be in RTP audio.
I have tested both versions WavePlayer and RTP Audio over a VPN with a roundtrip of about 42mS
and the delay is increasing over time, if i am connected for about 1 hour the delay can be up to 1.5 sek
sometime i have had several seconds in delay.
I have another voice application named IPSOUND that works OK, no delay what so ever, but that software is out of support and upgrades.
I had thoughts about making a new VOIP similar to IPSOUND that uses RTP audio, but first i have to sort out this delay problem.
Have you Ivar noticed any of this problem ?
Regards
Pete
|
|
|
|
|
Hi,
>I had thoughts about making a new VOIP similar to IPSOUND
You can try:
Simple SIP (VOIP) based phone in C#[^]
You can use local IP instead of domain, you can call 1 phone to another.
Though you need 2 computers for that.
See if it works ok.
For WavePlayer and rtp audio, first you need to sort out if mic or play out causing delay.
There are no adaptive sound buffering, so i can't see how delay increases ... .
|
|
|
|
|
Hi
I have downloaded Simple SIP and i am not shore how to set it up, i have 2 PC, one on 192.168.0.3 Local
and one remote 192.168.1.8
I have tried to set From sip:192.168.0.3 To sip:192.168.1.8 and on the remote side From sip:192.168.1.8 to sip:192.168.0.3 but i can´t get them to answer any call.
Am i missing something ?
>For WavePlayer and rtp audio, first you need to sort out if mic or play out causing delay.
>There are no adaptive sound buffering, so i can't see how delay increases ...
Well it works perfectly without any delay when i use IPSOUND with the same input / output so i don´t know.
Regards
Pete
|
|
|
|
|
You need to use "sip:user@ip:5060" as To:.
|
|
|
|
|
Hi Ivar
Strange, I cannot get the them to answer I have tried this settings.
Local machine
-------------
From sip:blue@192.168.0.3:5060
To sip:black@192.168.1.6:5060
Remote Machine
--------------
From sip:black@192.168.1.6:5060
To sip:blue@192.168.0.3:5060
No one of them answer any call
I haven't look so mush at the code but are they listening to the From: IP when they start ?
I have tested to connect from both PC to echo@iptel,org and music@iptel.org and that is working
but they do not connect to each other as above.
//Pete
modified 23-Jan-12 16:50pm.
|
|
|
|
|
Hi,
Do you get phone ringing ?
In one(which) computer you may leave all to from as is, on another you only need to alter to field:
sip:xxxx@remoteIP:5060
Phone listens on port 5060.
|
|
|
|
|
Hi
Yes it ringing, text message says calling and i hear a tone every time, but there is no response on the other side.
Strange this, i have also tested on same network lan, ie 192.168.0.6 and 192.168.0.3, (not over VPN)
but there is no connection there either.
I have copied the files that are in the Bin/Debug to the other computer and the program run ok, on the other side i run it from visual studio, but i don´t think it can have something to do with that.
I will get up wireshark to se if i can se any IP traffic.
|
|
|
|