Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Noise/voice as a controller
Started by sirmania Oct 16 2018 07:57 AM

6 replies to this topic
chicken scream noise sound controller plugin voice
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

sirmania

[GLOBAL: userInfoPane.html]
sirmania
  • Contributor

  • 154 posts
  • Corona SDK

Is it possible to create a noise/voice controller plugin for Corona?

 

So I can use noise and sound as a controller like in the "Chicken scream" game https://youtu.be/yeBgDGMt32M 

 

 



[TOPIC: post.html]
#2

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • Corona Geek

  • 7,585 posts
  • Corona SDK

I'm sure you could write a plugin that generates Runtime events.  Then you could listen for them in your code.

 

The trick, I think, is finding a good speech/audio conversion library/API to integrate into your plugin.

 

I'm guessing here, but it sounds like you are asking for something that merely detects:

  1. absence or presence of sound at a particular minimum volume
  2. possibly the ability to measure that volume.

 

Those two measures would allow for began, changed, and ended phases with (relative) volume as a floating point field.

 

That alone would give you significant flexibility in creating a control scheme.


Edited by roaminggamer, 16 October 2018 - 08:15 AM.


[TOPIC: post.html]
#3

XeduR @Spyric

[GLOBAL: userInfoPane.html]
XeduR @Spyric
  • Contributor

  • 762 posts
  • Corona SDK

Some time ago, a friend of mine created a game on LÖVE (another Lua engine) where the player controls an airplane's angle by the volume of microphone input. So, it can definitely be done on Lua, but I am not sure how he approached the issue, i.e. whether he wrote his own code or found some library, etc.



[TOPIC: post.html]
#4

sirmania

[GLOBAL: userInfoPane.html]
sirmania
  • Contributor

  • 154 posts
  • Corona SDK

Thanks for the tips @roaminggamer

 

I would really appreciate if you could ask your friend how he solved that, @XeduR.

I don't think it would be a lot of people purchasing this kind of plugin, but it can be used to create some pretty cool/unusual features.

I have a (potential) client that wants to create an artistic app that changes with the music he is listening to. 

 

I do not have the skill or time to create this kind of plugin myself, so I would also have to find someone that can.



[TOPIC: post.html]
#5

XeduR @Spyric

[GLOBAL: userInfoPane.html]
XeduR @Spyric
  • Contributor

  • 762 posts
  • Corona SDK

Apparently he wrote his own library using C++ and then used that. I asked and he wasn't keen on sharing the code as "it is all sorts of unpolished and poorly formatted".



[TOPIC: post.html]
#6

sirmania

[GLOBAL: userInfoPane.html]
sirmania
  • Contributor

  • 154 posts
  • Corona SDK

Apparently he wrote his own library using C++ and then used that. I asked and he wasn't keen on sharing the code as "it is all sorts of unpolished and poorly formatted".



[TOPIC: post.html]
#7

sirmania

[GLOBAL: userInfoPane.html]
sirmania
  • Contributor

  • 154 posts
  • Corona SDK

Thanks a lot for checking :)


[topic_controls]
[/topic_controls]