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 ?
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.
> 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
Take a look in here
AudioCellGLO.java and StationaryCellGLO.java are close to what you want.
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.
it isn't what i want !!
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 ) .
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.
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.