Skip to main content

0.4 Avatar voice from file

7 replies [Last post]
bum85
Offline
Joined: 2009-03-19
Points: 0

Hello,
I'm working on a way to have an avatar who move solitary (etc ...) when a specific event happen ( already done ).

Then i'd like to allow voice for this avatar from an audio file. It's possible ?

Thanks!

Fabio

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jprovino
Offline
Joined: 2007-03-29
Points: 0

Here's something you can try. It's not pretty but it should do what you want without writing any code.

Show the softphone by clicking on Windows and selecting Softphone.

In the Sun SIP Softphone, click on Call and select Playback.

In the Media Player Window, enter the path of the file to play.

Then click on Remote.

You've probably seen the stationary players which have audio files associated with them.
You could do something similar with your avatar. I think it would involve replacing the code
which starts the softphone and connects with an "input treatment" where you specify a file to play.

joe

bum85
Offline
Joined: 2009-03-19
Points: 0

thanks,

> You've probably seen the stationary players which
> have audio files associated with them.

where i can find the code for this?

otherwise i'm attemping to use JACK (i'm on Ubuntu ) to redirect output audio in input and play a file from WL where an event happend .

It's achievable !!!?!!

Message was edited by: bum85

jprovino
Offline
Joined: 2007-03-29
Points: 0

Take a look in here

/lg3d-wonderland/src/classes/org/jdesktop/lg3d/wonderland/darkstar/server/cell

AudioCellGLO.java and StationaryCellGLO.java are close to what you want.

joe

bum85
Offline
Joined: 2009-03-19
Points: 0

Hi,

another idea??

bernard_horan
Offline
Joined: 2007-06-04
Points: 0

Did this not work?

If you're willing to use stationary NPCs then the example WFS file is in the JeffK_Chatter-wlc.xml WFS file. It describes the location of the NPC and also the location of the audio file.

regards

Bernard

bum85
Offline
Joined: 2009-03-19
Points: 0

it isn't what i want !!

ex:
i login with a specifc name, from code i move this avatar and i allow his interaction with other avatar through intercpet various "click events" perform by other users.
Now i want this avatar speak unassisted (when an event happen ) .

sgalana
Offline
Joined: 2008-11-18
Points: 0

I don't know anything about NPCs in 0.4 but I remembar that there are several talking avatarsinside Sun MPK20 sample world, so they should get their audio from a file. Maybe you can check its source coide.

Bye