By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,814 Members | 1,050 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,814 IT Pros & Developers. It's quick & easy.

tksnack and socket to real time sampling and playing sound

P: n/a

I try to sample and playback speech using snack. My idea is to have a
socket based server that plays back the sound and a client that samples
the input from the sound card and sends it to the server using the
socket connection.

On the snack page there is a tutorial showing a socket server
implementation using tcl:

I had problems converting that example into python.

Googling for such a solution I found one discussion back in 2001:

The difference with this solution is that it is based around python
socket and does not use the snack internal socket implementation for
the data input. If I understand that correct there is a limitation as
the socket.recv(8192) function limits the receivable data to the
specified buffer size.

Did somebody use the snack based socket implementation with python?

Is there a better way to solve this sampling and playback with another
tool than snack?

Is snack even capable of doing this? I am looking for pretty low
sampling rates, like 8kHz.

I would like to be flexible and use it under Windows and Linux as well.



Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.