• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: [1] 2 3
1  General Category / General Discussion / Re: Audio & The Sheevaplug on: January 17, 2011, 02:43:34 PM
Ok well playing MP3's works find with either asound configuration I use, but my text to speech went back to being more crackled with a smaller buffer size.


Please try it:

Code:
apt-get install flite

flite -t "hello world, this is some very long text to see if the buffer size can handle a sentence of this."
2  General Category / General Discussion / Re: Sheevaplug USB Audio badly distorted on: January 14, 2011, 05:35:07 PM
well i was able to compile and use pianobar to stream pandora successfully....still problems with my text to speech crackling
3  General Category / General Discussion / Re: Audio & The Sheevaplug on: January 14, 2011, 05:31:53 PM
Yesss! Sorted It.

Massive thanks to a post over at Doozan by PeterGunn. He has solved my issues as well as his own Smiley
http://forum.doozan.com/read.php?2,2840,3071

Here is what he done

Created /etc/asound.conf with the following configuration;
Code:
pcm.!default {
    type plug
    slave.pcm "softvol"
}
pcm.dmixer {
       type dmix
       ipc_key 1024
       slave {
           pcm "hw:0"
           period_time 0
           period_size 4096
           buffer_size 131072
           rate 50000
       }
       bindings {
           0 0
           1 1
       }
}
pcm.dsnooper {
       type dsnoop
       ipc_key 1024
       slave {
           pcm "hw:0"
           channels 2
           period_time 0
           period_size 4096
           buffer_size 131072
           rate 50000
       }
       bindings {
           0 0
           1 1
       }
}
pcm.softvol {
       type softvol
       slave { pcm "dmixer" }
       control {
           name "Master"
           card 0
       }
}
ctl.!default {
    type hw
    card 0
}
ctl.softvol {
    type hw
    card 0
}
ctl.dmixer {
    type hw
    card 0
}

and edit  /etc/modprobe.d/alsa-base.conf

change this line from;
Code:
# Keep snd-usb-audio from beeing loaded as first soundcard
options snd-usb-audio index=-2

to;
Code:
# Keep snd-usb-audio from beeing loaded as first soundcard
options snd-usb-audio index=0

Reboot, and perfect sound using

aoss ./squeezeslave localhost

Brilliant, im really pleased. Controlling it using ipeng on the iphone and it sounds pretty good.



Do you understand what you are doing? We shouldnt even need this I don't know why it doesn't work without it though...pretty lame.

I have been using an ".asoundrc" file in the root's home directory with a huge buffer, other wise the audio starts to crackle like yours....but with a huge buffer it takes forever to load up the audio before it starts playing:

Code:
root@haplug:~# cat .asoundrc
pcm.!default {
type  plug
slave.pcm "ossmix"
}

pcm.ossmix {
   type dmix
    ipc_key 1024
    slave {
    pcm "hw:0,0"
        period_time 0
        period_size 1024
        buffer_size 232072 # buffer size < 6653, but pow(x, 2)
        rate 44100 # we want to play CDs only
        format S16_LE # needed in alsa 1.0.10 for some reason
    }
}
ctl.!default {
type hw
card 1
device 0
subdevice 0
}



I had just commented out the line in the alsa conf file:

Code:
# Keep snd-usb-audio from beeing loaded as first soundcard
#options snd-usb-audio index=-2


I'll try your settings tonight and report back.
4  Hardware and U-Boot firmware / Hardware / Re: Audio, the SheevaPlug and the Linux distros on: January 14, 2011, 05:22:58 PM
Could you try to use madplay just to see if your card is able to work smoothly ?
What is the command to use flite/festival to output text file as sound to usb card ?

I've tried madplay...no good...

try apt-get install flite
and then do
flite -t "hello world"

you should hear something....

now when I make it longer:

flite -t "hello world I am a sheevaplug computer and I can't do audio very well, or maybe my owner does not know what he's doing"

then it will start to crackle and get fuzzy and unrecognizable toward the middle.
5  Hardware and U-Boot firmware / Hardware / Re: Audio, the SheevaPlug and the Linux distros on: October 18, 2010, 10:50:06 AM
I'm not going to be playing mp3's. I'm only using it for text to speech output on my home automation server. Flite and/or Festival...

Also, this USB sound adapter worked perfectly on my previous and current NAS running linux:

previous NAS:

# CPU: 266MHz, 32bit@133, with floating point
# Memory: 64MB

current NAS:

# CPU Frequency: 1.2GHz
# Memory: 256MB

Sheevaplug has 1.2GHz w/ 512MB so I dunno what the problem is...
6  Linux Stuff / General Linux questions / Re: SSH on sheevaplug running debian on usb/mmc is terrible!!!! on: October 18, 2010, 10:46:43 AM
no...i can't explain it but, the things work perfectly when using a dhcp address versus static ip...
7  Hardware and U-Boot firmware / Hardware / Re: Audio, the SheevaPlug and the Linux distros on: October 15, 2010, 10:56:49 AM
Any tutorials on this?

I'm getting complete garble/distortion with my "3D Sound" USB audio adapter. It works on my Synology NAS...
Hi,

I've exactly this same problem - did you solved it ?

Regards.


I thought I had solved it by creating an .asoundrc file in the roots home directory and increasing the buffer size, but then I heard distortion again last time i tested it. :-/
8  General Category / General Discussion / Re: Sheevaplug USB Audio badly distorted on: September 30, 2010, 08:49:22 AM
I don't think it's any one program, I think it's a matter of setting up ALSA properly
9  General Category / General Discussion / Re: Sheevaplug USB Audio badly distorted on: September 29, 2010, 07:12:10 PM
Same thing with mplayer...distorted...I even switched out the USB adapter with my USB logitech headset...same same same


root@haplug:~# mplayer track39.mp3
MPlayer 1.0rc3-4.4.4 (C) 2000-2009 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing track39.mp3.
Audio only file format detected.
Clip info:
 Title: Track 39                     
 Artist:                               
 Album:                               
 Year: 1999
 Comment: , AG# F7355561               
 Genre: Pop
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:  25.7 (25.7) of 33.0 (33.0) 26.6% $<50>
10  Hardware and U-Boot firmware / Hardware / Re: Stack Trace during debian install on: September 29, 2010, 04:13:56 PM
Sorry but the linux putty terminal doesn't allow copying and pasting.
Mine does (Putty release 0.60).  Buuton1 to copy and Button2 to paste.  Standard X.

Well i'm not using putty or screen anymore. Had more luck with 'cu' as suggested by NewIT
11  General Category / General Discussion / Re: Sheevaplug USB Audio badly distorted on: September 29, 2010, 04:12:24 PM
That was not true for my on my linux based NAS, however for setting things up on the sheevaplug I have the usb adapter plugged directly
12  General Category / General Discussion / Sheevaplug USB Audio badly distorted on: September 29, 2010, 12:33:33 PM
I am using one of those "3D Sound" USB audio adapters that usually work perfect with linux according to reviews. Well it works on my Synology NAS, and it works on my Macbook Pro, but it is distorted on the Sheevaplug.

The sound it so distorted I can't even tell what it is.

Could anyone help me troubleshoot?
13  General Category / Success stories / Re: USB audio dongle based Jukebox on: September 29, 2010, 11:41:21 AM
I have updated the Wiki for users that want to use lighttpd instead of Apache, it works great with less install base and configuration hassle.


Care to elaborate on adding kernel sound support?
14  Hardware and U-Boot firmware / Hardware / Re: Can't get USB Audio to work on: September 29, 2010, 11:39:03 AM
Any updates?
15  Hardware and U-Boot firmware / Hardware / Re: Audio, the SheevaPlug and the Linux distros on: September 28, 2010, 04:32:34 PM
Any tutorials on this?

I'm getting complete garble/distortion with my "3D Sound" USB audio adapter. It works on my Synology NAS...
Pages: [1] 2 3