One of the ways to offer enhanced fun and language support is for the menu to be linked to speech wavs or other sound files which can be turned on from JWM Configuration or other means. The idea being the Puppy menu can speak its items in your language . . .
To explore this possibly we (I have started peer programming) have been working with wavplay.
1. The purpose of unlock and lock in the wavplay documentation and usage is not readily apparant?
2. Are we using the latest wavplay? It seems to have been rewritten and compiled for every distro going.
3. Is there a similar or better utility (perhaps using .au) for playing menu sounds?
4. Can we confirm that ALSA is not in 1.0.5 and will be in 1.06?
5. At the moment it seems that the whole of the sounds would need to be in memory and then called or locked if moving up the menu - so this might require C or assembler type speed?
Please dive in with any solutions . . .
Puppy Talk - Bow-Wow
Moinmoin Lobster
Wavplay is not that good.
On my computer (soundchip intel 810compatible) it plays sounds too fast.
Other Programs play wav correct, mp3 and ogg is ok too.
I might test other commandlineprograms.
I've read one or two other posts where people had the same behaviour with wavplay.
...test... playwave plays them with correct speed. Unfortunately playwave requires the SDL-Library installed (which i released with Doom, though not all of those files). Same with playsound (plays mp3, too)
>4. Can we confirm that ALSA is not in 1.0.5 and will be in 1.06?
I had a look to the Kernel-Modules today and found just OSS, no Alsa.
My Soundcard does not work with Alsa on Mandrake 9.2.
It seems Alsa will be replaced by the new "jack" in future versions of KDE.
Jack is a multitracking system, while OSS and Alsa block the sounddevice when a program plays a sound (so you get errors when you start audacity while gxine plays).
>1. The purpose of unlock and lock in the wavplay documentation and usage is not readily apparant?
I think it has to do with the last point.
I think if you "lock", no other program can interrupt wavplay from using the soundcard.
If you unlock, it can be interrupted.
Mark
Wavplay is not that good.
On my computer (soundchip intel 810compatible) it plays sounds too fast.
Other Programs play wav correct, mp3 and ogg is ok too.
I might test other commandlineprograms.
I've read one or two other posts where people had the same behaviour with wavplay.
...test... playwave plays them with correct speed. Unfortunately playwave requires the SDL-Library installed (which i released with Doom, though not all of those files). Same with playsound (plays mp3, too)
>4. Can we confirm that ALSA is not in 1.0.5 and will be in 1.06?
I had a look to the Kernel-Modules today and found just OSS, no Alsa.
My Soundcard does not work with Alsa on Mandrake 9.2.
It seems Alsa will be replaced by the new "jack" in future versions of KDE.
Jack is a multitracking system, while OSS and Alsa block the sounddevice when a program plays a sound (so you get errors when you start audacity while gxine plays).
>1. The purpose of unlock and lock in the wavplay documentation and usage is not readily apparant?
I think it has to do with the last point.
I think if you "lock", no other program can interrupt wavplay from using the soundcard.
If you unlock, it can be interrupted.
Mark
- Attachments
-
- playwave.tar.gz
- (3.43 KiB) Downloaded 437 times
-
- playsound.tar.gz
- (9.16 KiB) Downloaded 439 times
- Lobster
- Official Crustacean
- Posts: 15522
- Joined: Wed 04 May 2005, 06:06
- Location: Paradox Realm
- Contact:
Allright Mark (London greet = "Alright" or for the morning- "Morning")MU wrote:Moinmoin Lobster
Yep - beginning to suspect that . . .Wavplay is not that good.
On my computer (soundchip intel 810compatible) it plays sounds too fast.
I need something small and fast (applies to the sound files too) - Using Audacity the files can be mono and small - I have a feeling .au will be the best, fastest. Mp3 and ogg is compressed? So has to be uncompressed or raw for speed? Compressed may slow it down?Other Programs play wav correct, mp3 and ogg is ok too.
Be interested with what you come acrossI might test other commandlineprograms.
I've read one or two other posts where people had the same behaviour with wavplay.
That may or may not be a problem. Is all of the SDL required? How big is it?...test... playwave plays them with correct speed. Unfortunately playwave requires the SDL-Library installed (which i released with Doom, though not all of those files). Same with playsound (plays mp3, too)
Looked briefly at Jack - but as it is KDE specific was more interested in other potential solutionsMy Soundcard does not work with Alsa on Mandrake 9.2.
It seems Alsa will be replaced by the new "jack" in future versions of KDE.
Jack is a multitracking system, while OSS and Alsa block the sounddevice when a program plays a sound (so you get errors when you start audacity while gxine plays).
This was my starting point:
http://linux-sound.org/
That makes some kind of sense. In effect we have to be able to interrupt the playing of a sound file if moving up through the menus - that is the plan. Thanks for the advice and help>1. The purpose of unlock and lock in the wavplay documentation and usage is not readily apparant?
I think it has to do with the last point.
I think if you "lock", no other program can interrupt wavplay from using the soundcard.
If you unlock, it can be interrupted.
No, should not be slower, as the files are smaller than wav, they are loaded faster.I need something small and fast (applies to the sound files too) - Using Audacity the files can be mono and small - I have a feeling .au will be the best, fastest. Mp3 and ogg is compressed? So has to be uncompressed or raw for speed? Compressed may slow it down?
What are .au-files? Audacity-format? Can they be played from comandline?
SDL for Doom-Dotpup is 260 kb compressed, but not all files needed for playwave.That may or may not be a problem. Is all of the SDL required? How big is it?
But playsound needs more.. quick look.. maybe 1 MB
But i think mplayer can play mp3 and more from comandline
Is it? I'm not shure about that? KDE wants to use it, but I don't know if it KDE-specific (KDE uses the Alsa at moment, it is not KDE-specific too)Looked briefly at Jack - but as it is KDE specific ...
Greets,Mark
- Lobster
- Official Crustacean
- Posts: 15522
- Joined: Wed 04 May 2005, 06:06
- Location: Paradox Realm
- Contact:
.au is a little known but excellent format. I first came across it with web design. Most web browsers support it, including Windows browsers. It was developed for Unix - I believe by Sun. Small, mono very clear. Adding sound to web sites in this format was great even for dial up. Streaming makes it more feasible to use other formats . . .What are .au-files? Audacity-format? Can they be played from comandline?
Yes they can be played from command line with the right player . . .
I am not sure either . . .=====
Looked briefly at Jack - but as it is KDE specific ...
====
Is it? I'm not shure about that? KDE wants to use it, but I don't know if it KDE-specific (KDE uses the Alsa at moment, it is not KDE-specific too)
Gxine (in Puppy) is a front end to xine - so is that a possibility?
It says in the documentation that xine is being used as the update to wavplay. My question is how is xine used from the command line to play a sound file (in other words without gxine - which is not required)?
Speak Puppy SPEAK! - woof woof