Is it possible to read RAW format files with the wave shield and the library.
How to reduce the break between a short file, if played in a loop.
How to reduce the size of the library.
thank you for aou answers
Moderators: adafruit_support_bill, adafruit
zi9 wrote:Is it possible to read RAW format files with the wave shield and the library.
How to reduce the break between a short file, if played in a loop.
How to reduce the size of the library.
sox \
--show-progress \
INFILE.wav \
-w \
-t wav \
--endian little \
-c 1 \
-r 22050 \
OUTFILE.wav \
polyphase
# NOTES
# first install sox. On osx with macports installed it goes like this:
# sudo port install sox +lame
#
# make sound files for the waveshield
# INPUT.WAV
# -t (input) file type (optional if extension is definitive)
# OUTPUT.WAV
# -w 16 bit words
# --endian little the waveshield wants little endian files
# -c 1 mono (1 channel)
# -r 22050 rate 22050 Hz.
# -t (output) file type
# -w 16 bit words
# polyphase best method for resampling (compare resample)
see http://leute.server.de/wilde/resample.html
sox --show-progress INFILE.wav -t wav --endian little -c 1 -r 22050 OUTFILE.wav#!/bin/bash
Z=1
# a static var, always zero
PRE="tzi"
# Prefix. Files will be named prefix+number.wav
Y=1
# the counter
for x in *
do
echo "Converting $PRE$Y.WAV"
#This next line does all the stuff so comment it out first
# and make sure the filenames look the way you want them...
# ..and then change it to be your own output directory, not my one!
# Ok here it comes:
sox --show-progress "$x" -t wav --endian little -c 1 -r 22050 done/$PRE$Y.WAV
Y=$(($Y + $Z))
done
adafruit wrote:all mono <=22khz, <=16bit wav's should be played. check to see if they have compression turned on or something. what happens if you try to play them?
On the other hand I'm thinking it might be the SD card. When copying files to it, I got a few I/O errors too...
Return to Arduino Shields from Adafruit
Users browsing this forum: Google [Bot] and 7 guests