Playmaker Forum
PlayMaker Help & Tips => iOS Help => Topic started by: cptsvim on July 04, 2012, 05:36:01 PM
-
Hi there,
Stuck again. :)
I´m trying to setup something like "talking tom"
Does anyone know how to set up the "record and play" what you just said.
Since I´m quite new to this it´s a bit hard.
I would be so happy if someone could help me out.
Cptsvim
Best
Tony
-
Hi,
ok, I have produced a small working example to record and playback audio.
Basically, it has no user interface, you control everything from the FSM inspector with three events.
so select the sound recorder gameObject and in the fsm inspector you will have three buttons ( events)
PLAY
START RECORDING
STOP RECORDING
as you play the scene, it will ask for permission to use the mic, then start recording if allowed, press "STOP RECORDING" and then "PLAY" and you'll hear what you just said :)
The default recording time ( set in the "record audio" state) is 10 sec.
bye,
Jean
-
Thats cool!
Thanks a lot. Works just like you said. It´s a tricky one to make the microphone start when incoming sound passes a certain volume. :) That needs some coding I guess?
Another cool function would be if playmaker could spoil us with some advanced audio-setting actions.
Playback in another bit-rate different kHz and so on. That would rock.
Best
CptSvim
-
Did anyone figured out how to use Playmaker to start recording on sound trigger?