Solved cli conerter for au format sound bites.

I got this emiclock that has a sound bite that I do not like for its chime. I was wondering what Fbsd FreeBSD has to convert a mp3 to a au format as I tired playing wav, mp3 and a mp3 converted off the net to au and none of them worked. I got a sound byte I just need to convert it to the proper format to play it.

Google did not reveal anything so now I am asking.
thanks.
 
You need to find out what type of encoding was used. The .au filetype can be encoded in various different formats. As it's used by a fairly simple application (a clock) it's probably something simple like PCM.

 
Audacity opens the file so you should be able to convert with that.
For command line conversion we have audio/sox

Code:
# file -s /usr/ports/x11-clocks/emiclock/work/stage/usr/local/lib/X11/EmiClock/myu.au
/usr/ports/x11-clocks/emiclock/work/stage/usr/local/lib/X11/EmiClock/myu.au: Sun/NeXT audio data: 8-bit ISDN mu-law, mono, 8000 Hz

Code:
# soxi -V myu.au
soxi INFO formats: detected file format type `au'
soxi INFO au: found big-endian `.snd' identifier
soxi WARN au: header size 24 is too small

Input File     : 'myu.au'
Channels       : 1
Sample Rate    : 8000
Precision      : 14-bit
Duration       : 00:00:00.21 = 1642 samples ~ 15.3937 CDDA sectors
File Size      : 1.67k
Bit Rate       : 64.9k
Sample Encoding: 8-bit u-law
 
ffprobe (from ffmpeg) can usually tell what format was used for encoding the audio.
I prefer to use the hide_banner option, which keeps it from giving the all the details of what options were used in compilation.

ffprobe -hide_banner <my-audiofile>

(from an mp4 I had lying around.
Code:
  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 122 kb/s (default)
 
that is what I found that au files are Sun/NeXT, so this being *BSD which is a Unix format OS type OS, I figured it had a easy convert cli command from whatever it would use to convert sound files from one format to another. This would alleviate me from having to install Audacity and go through all of that, as for me it is not that intuitive in making an easy to do anything with, let alone convert files.

I always end up having to take too much time figuring it out again as I do not use it on a regular basis. So, I shy away from that app, Audacity. I've always dealt with flac and mp3 using flac and lame for conversions and re-samplings (to) mp3.

I'd just like to take this mp3 sample/bite ding sound and convert it into the au format that this little clock app uses.

thanks, I guess I'll look a little further into this sox to see how to convert this mp3 into an au format I need, or figure out this Audacity again to convert this then forget everything about it again. :D because I do not use it that much, if at all.

a few minutes later ..... (update)

Audacity,, nope it got no export to au...
sox all I am finding so far is au to something else and not vias versa.

au I know has to be such an old format not much being pulled up on it, right now I am just getting dead links .. crazy man crazy ...
 
Code:
$ ffmpeg -i service-bell_daniel_simion.mp3 ding01.au
.....
[userx@FreeBSD64ssd Downloads]$ play ding01.au              

ding01.au:                                                  

File Size: 277k      Bit Rate: 1.41M                       
  Encoding: Signed PCM                                      
  Channels: 2 @ 16-bit                                      
Samplerate: 44100Hz                                         
Replaygain: off         Artist: SoundBible.com Must Credit  
  Duration: 00:00:01.57  Title: SoundBible.com Must Credit  

In:0.00% 00:00:00.00 [00:00:01.57] Out:0     [      |      ]    In:35.5% 00:00:00.56 [00:00:01.01] Out:24.6k [  ====|====  ]    In:47.3% 00:00:00.74 [00:00:00.83] Out:32.8k [    ==|==    ]    In:59.2% 00:00:00.93 [00:00:00.64] Out:41.0k [    -=|=-    ]    In:71.0% 00:00:01.11 [00:00:00.46] Out:49.2k [ -====|====- ]    In:82.8% 00:00:01.30 [00:00:00.27] Out:57.3k [    ==|==    ]    In:94.7% 00:00:01.49 [00:00:00.08] Out:65.5k [     =|=     ]    In:100%  00:00:01.57 [00:00:00.00] Out:69.2k [      |      ]            Clip:0                                              
Done.
add it into that emiclock, press test, and aggggawwwwwkkkkk static city like the others... outdated sound format usage. Probably wrote this back in the 1800's ... I'm leaving it for now. maybe look at the source code to see what I see, if I get a hankering to do so, and whatever else to see if I can change that sound bite to something else.
Code:
[userx@FreeBSD64ssd Downloads]$ file myu.au
myu.au: Sun/NeXT audio data: 8-bit ISDN mu-law, mono, 8000 Hz

[userx@FreeBSD64ssd Downloads]$ file ding01.au
ding01.au: Sun/NeXT audio data: 16-bit linear PCM, stereo, 44100 Hz
get that 16-bit stereo to match that 8-bit mono maybe that will make it work.
 
Back
Top