Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Microphone API #13268

Closed
Grabli66 opened this issue Nov 25, 2017 · 15 comments
Closed

Add a Microphone API #13268

Grabli66 opened this issue Nov 25, 2017 · 15 comments

Comments

@Grabli66
Copy link

Please, add the posibility to record audio from microphone.
It's needed for creating music applications, such as i do :)

@hungrymonkey
Copy link
Contributor

hungrymonkey commented Nov 29, 2017

@Grabli66 if you wish, i can write a simple c++ signal mic module for you in the meantime using SDL 2.0.5 or greater.

dummy_audiostream.zip

I am just using a mic for an unrelated purpose. As you can see in the code, I really do not care about usability other than my use case. I would modify the code for your use case

https://forums.libsdl.org/viewtopic.php?p=51881

either way, I would never expect this code to be committed because it is only meant for me.

@Grabli66
Copy link
Author

Thanks.
But I don't want temporary solution.
I'll will wait.

@DEF7
Copy link

DEF7 commented Apr 10, 2018

I second the request for this functionality, in my case for purposes of streaming the audio in a VR game to other players over the network (which would obviously require some kind of realtime audio codec for low latency/bandwidth transmission).

@mad-tzar
Copy link

Hi - first time poster.
I am growing really fond of GODOT for making 2d games!

I have a great idea for a small game series that utlize audioinput like "scream hero". Unfortunately I just saw that there is no support for microphone input.

I would love to get that feature!

@mad-tzar
Copy link

@hungrymonkey I just gave your link a quick look! How easy is it to implement?
Do I need to make my own branch of the GODOT 3 engine or can it interact with the stable version?

@hungrymonkey
Copy link
Contributor

hungrymonkey commented Apr 12, 2018

@mad-tzar

its currently not registered into GDScript. But that is easy too.

copy the module over and compile basically

the audiostream is currently crappy since i do both memory allocation and block the audio stream.

The mic is ok, it is basically an event base mic. a few lines of code can change it into a float base

@DEF7 well, i was kinda working on that. that is the reason why i added an mic.

I suggest you look into godot Server

https://godotengine.org/article/why-does-godot-use-servers-and-rids

@akien-mga akien-mga changed the title [Feature request] Microphone API Add a Microphone API May 25, 2018
@Kiotenhariyo
Copy link

Very happy to see this development. Working on dev of endangered-world-languages learning applications for non-profit educational use. Godot will be the perfect engine for this work once mic support is implemented. I have not ventured far into learning C languages yet and was hoping would not have to.

@fahrstuhl
Copy link

Thank you for your SDL mic code, @hungrymonkey ! I adapted it for a small project of mine and it worked very well.

@hungrymonkey
Copy link
Contributor

@fahrstuhl sure, no problem. I actually created a lockless version for the dummy audiostream.

I am currently trying to refactor voip then ask reduz for input. it is in process.

@zvoislav
Copy link

Hi,
I really need a audio record feature. Can you @fahrstuhl or somebody else explain me how to implement this SDL module and how to use it.
Thank you in advanced.

@hungrymonkey
Copy link
Contributor

hungrymonkey commented Jul 30, 2018

I already provided a link

https://github.com/godotengine/godot/files/1515081/dummy_audiostream.zip

its just not registered to gdscript. You just have to add it to my modules.

If you wish, you can take a look at the official mic

https://github.com/godotengine/godot/pull/19106/files/d91183be524c2a2d13d5c40473297cbc713f43da..f045534f866204b5458b9ef32f7a5b5996253839

@akien-mga
Copy link
Member

Fixed by #19106.

@akien-mga akien-mga added this to the 3.1 milestone Aug 13, 2018
@Colorfingers
Copy link

Please add microphone support... this is pretty much a standard feature on all platforms. Thank you...

@Calinou
Copy link
Member

Calinou commented Oct 13, 2018

@Colorfingers This was implemented in #19106 and will be available in 3.1 😃

@Colorfingers
Copy link

Sweet, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests