Re: Voice playback from a buffer using wavplay
- From: "Rodney Thomson" <readmore@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 16 Jul 2008 04:02:17 +0000 (UTC)
"steven.bak" <steven.bak@xxxxxxxxx> wrote in message
<9a764d17-64f1-4a5e-b418-332133e3450a@xxxxxxxxxxxxxxxxxxxxxxxxxx>...
Hi,Voice is
I am trying to make an intercom type application where
recorded on CompA, sent over UDP to CompB, and played backon CompB in
real time with a slight delay.data to
I am recording my voice using wavrecord, then sending that
another computer over a UDP object.it is
I am able to play the voice back on the other machine but
choppy, not smooth.read from the
Is it possible to "wavplay(A)" where A is some buffer that is
dynamically growing with new Voice Data as it is being
UDP object?
Is there a better way to go about what I am trying to do?
Thanks in Advance.
I have done similar before where a remote acquisition device
has been digitising acoustic data and making it available
over a network. The psuedocode was as follows:
fs = 96000;
bits_per_sample = 16;
socket = connectToServer(host, port)
while true
if (isClosed(socket)
break;
end
[data] = readData(socket); % blocks waiting for data
% Play the acoustic data in data through default soudncard
player = audioplayer(data, fs, bits_per_sample);
play(player);
end
%-----------------------------
I would recommend using short-ish buffers of data, ie 1
second. To avoid stuttering i would recommend buffering the
first few buffers either before sending server side or
playing receiver side. And possibly look at using the
matching audiorecorder server side.
Rod
--
http://iheartmatlab.blogspot.com
.
- References:
- Voice playback from a buffer using wavplay
- From: steven.bak
- Voice playback from a buffer using wavplay
- Prev by Date: Re: How to store factorization info when backslash, \ is used to solve matrix equation
- Next by Date: Re: Tables don't work when compiled
- Previous by thread: Voice playback from a buffer using wavplay
- Next by thread: return index of positive row
- Index(es):