Script python to play .au (unix audio) file
#1
Big Grin 
hello,

i want to help someone to write a script that can play an .au audio file on the xbox

someone have an idea how to do that ? with an external dll or anything else

thanks you much for you help
Reply
#2
this file is encoded in ulaw 8000 khz like this one:
http://deathdigger.free.fr/message.pl.au

we have tried to read it by mplayer but it crashes (theorically the ulaw format is supported), so there is two possibilities :
- find the correct codec of mplayer
- using "audioop" python librairy to encode the file in another format compatible.
we have progressed in the second way, but the sound isn't clear enough. could anyone give us some help on how to add the right codec, because that seems to be the easiest way to play thoses files.
thanks

ps: thanks deathdigger for this little update Smile
Reply
#3
the gui cpio77 wants to help is myself...

we have a phone provider that can send us answerring machine messages for download on a website. i made the script to catch the message but xbmc just can't read it....

the file is sun format (.snd magic word)
i can translate it into .wav format which can be read by xbmc. but the translation .au --> .wav can't be done under python xbmc as the audioop lib is missing....

so i really hop someone could help us !
see ya
Reply
#4
hi !
some news about my problem

someone write me a part of the audioop library into pure python code (translated from the c source of the lib)
i'm able to translate the .au file into .wav valid audio file that xbmc player can read. but (always this f*** but :@ ), but at the end of the .wav reading file, it is not correctly stopped so the file still open. if i read up to the end this wave file from the music section of xbmc it simply hang my xbmc. no problem if i stop the reading before it ends itself....

always need help, si if you can, please help !
Reply
#5
Sad 
why not get mplayer or ffmpeg devs to add to mplayer/ffmpeg instead?, or even better get the guy who translated the c source library to submit a patch (in c) directly to mplayer/ffmpeg?, read this (link) Huh
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#6
hi !
it's ok, i'm now able to make a valid wave file from the au file.
then no problem to read it.
it was hanging at the end, because (i think) i was trying to play the wave file with python to early after creating it. the wave file was not totally closed as the wave library check data frames before closing it...

anyway, it works, but i'm not good enough to implement the .c file to create a new codec....
Reply

Logout Mark Read Team Forum Stats Members Help
Script python to play .au (unix audio) file0