playMaker

Author Topic: Repeat sound ( talking tom )  (Read 6831 times)

cptsvim

  • Playmaker Newbie
  • *
  • Posts: 14
Repeat sound ( talking tom )
« 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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Repeat sound ( talking tom )
« Reply #1 on: July 05, 2012, 04:11:08 AM »
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


cptsvim

  • Playmaker Newbie
  • *
  • Posts: 14
Re: Repeat sound ( talking tom )
« Reply #2 on: July 05, 2012, 10:33:20 AM »
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

Cmilian

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Repeat sound ( talking tom )
« Reply #3 on: December 30, 2013, 01:28:21 PM »
Did anyone figured out how to use Playmaker to start recording on sound trigger?