[Python-latam] ¿Como codificar audio recibido (RAW AUDIO) por websocket a ogg vorbis o a mp3?

Heber Futuri hb.heber at gmail.com
Thu Nov 26 15:16:15 EST 2015


Recibo datos de audio mediante webscoket en python , al recibir los datos
no se como como codificarlo a archivo de audio ogg o mp3.

help! >_<

from websocket_server import WebsocketServer

def data_received(client, server, datos):
    #aquí recibo los datos, aquí debería codificar el audio


PORT=9001
server = WebsocketServer(PORT)
server.set_fn_message_received(data_received)
server.run_forever()

PD: ya intente con varias librerías (pyaudio, pyogg, py-lame) tal vez
no las supe usar :(
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-latam/attachments/20151126/c46b8edc/attachment.html>


More information about the Python-latam mailing list