Puppy Talk - Bow-Wow

Under development: PCMCIA, wireless, etc.
Post Reply
Message
Author
User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

Puppy Talk - Bow-Wow

#1 Post by Lobster »

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 Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#2 Post by MU »

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
Attachments
playwave.tar.gz
(3.43 KiB) Downloaded 437 times
playsound.tar.gz
(9.16 KiB) Downloaded 438 times

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#3 Post by Lobster »

MU wrote:Moinmoin Lobster ;)
Allright Mark (London greet = "Alright" or for the morning- "Morning")
:)
Wavplay is not that good.
On my computer (soundchip intel 810compatible) it plays sounds too fast.
Yep - beginning to suspect that . . .

Other Programs play wav correct, mp3 and ogg is ok too.
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?
I might test other commandlineprograms.
I've read one or two other posts where people had the same behaviour with wavplay.
Be interested with what you come across

...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)
That may or may not be a problem. Is all of the SDL required? How big is it?
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).
Looked briefly at Jack - but as it is KDE specific was more interested in other potential solutions
This was my starting point:
http://linux-sound.org/

>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.
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 :)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#4 Post by MU »

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?
No, should not be slower, as the files are smaller than wav, they are loaded faster.
What are .au-files? Audacity-format? Can they be played from comandline?
That may or may not be a problem. Is all of the SDL required? How big is it?
SDL for Doom-Dotpup is 260 kb compressed, but not all files needed for playwave.
But playsound needs more.. quick look.. maybe 1 MB :(
But i think mplayer can play mp3 and more from comandline :)
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)

Greets,Mark

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#5 Post by Lobster »

What are .au-files? Audacity-format? Can they be played from comandline?
.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 . . .
Yes they can be played from command line with the right player . . .
=====
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)
I am not sure either . . .

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
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#6 Post by BarryK »

Okay, having to speed-read the forum today!
Scanning through this thread, I don't see play.tcl mentioned, which is in Puppy.

Post Reply