## Microphone Support for LÖVE!

Davidobot
Party member
Posts: 1163
Joined: Sat Mar 31, 2012 5:18 am
Location: Cambridge, UK
Contact:

### Re: Microphone Support for LÖVE!

Jasoco wrote:So what exactly can you do with microphone support in Löve?
Voice communication in multiplayer games, maybe?
My projects: Raycaster, love.js v11.3 port
My library: LovelyMoon

Jasoco
Inner party member
Posts: 3651
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

### Re: Microphone Support for LÖVE!

Davidobot wrote:
Jasoco wrote:So what exactly can you do with microphone support in Löve?
Voice communication in multiplayer games, maybe?
I guess so. Can Löve send that data over the internet?

slime
Solid Snayke
Posts: 2888
Joined: Mon Aug 23, 2010 6:45 am
Contact:

### Re: Microphone Support for LÖVE!

Jasoco wrote:Can Löve send that data over the internet?
Yes, although it'll use a very large amount of bandwidth if you don't use a voice compression codec like Speex.

igneous
Prole
Posts: 10
Joined: Wed Dec 31, 2008 5:35 am

### Re: Microphone Support for LÖVE!

slime wrote:
Jasoco wrote:Can Löve send that data over the internet?
Yes, although it'll use a very large amount of bandwidth if you don't use a voice compression codec like Speex.
Would it be possible to include a couple open-source voice-specific codecs in a future version of love? I'd love to see opus or celt support in love.audio.

EliterScripts
Citizen
Posts: 85
Joined: Sat Oct 25, 2014 7:07 pm

### Re: Microphone Support for LÖVE!

How do I use this? Like, do I slap this into a directory, then, in love.load put

Code: Select all

mic=require("I don't know")
? How do I use this? I really don't know the language of anything that is not lua.

Helvecta
Party member
Posts: 167
Joined: Wed Sep 26, 2012 6:35 pm

### Re: Microphone Support for LÖVE!

EliterScripts wrote:How do I use this? Like, do I slap this into a directory, then, in love.load put

Code: Select all

mic=require("I don't know")
? How do I use this? I really don't know the language of anything that is not lua.
Here's the snippet that LPGhatguy included in the samples. Check out the code in main.lua, you only need to require "love-microphone"!!

As an aside, I freaking love you OP, I've been waiting around for a year for this. I AM SO HYPED!!
Attachments
Mic test.love
"Bump." -CMFIend420

Operarus
Prole
Posts: 7
Joined: Thu May 08, 2014 2:20 pm

### Re: Microphone Support for LÖVE!

How can I run this lib on android?
Maybe I need to compile the LOVE-android-port with a permission of the microphone?

qubodup
Inner party member
Posts: 775
Joined: Sat Jun 21, 2008 9:21 pm
Location: Berlin, Germany
Contact:

### Re: Microphone Support for LÖVE!

This is fun to play with if you manage to use output as input

http://youtu.be/dBObtPSrexk
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)

T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

### Re: Microphone Support for LÖVE!

Jasoco wrote:So what exactly can you do with microphone support in Löve? It's not like you can process voice commands in real-time.

Maybe emulate the Famicom to kill rabbit enemies in a Zelda game or stuff the DS, 3DS and Wii U do in some games?
Once you've played the masterpiece that is Takeshi no Chousenjou, you'll never want to play a game that doesn't require you to yell at it when you lose.

qubodup
Inner party member
Posts: 775
Joined: Sat Jun 21, 2008 9:21 pm
Location: Berlin, Germany
Contact:

### Re: Microphone Support for LÖVE!

Jasoco wrote:So what exactly can you do with microphone support in Löve?
Let WOOORRK! inspire you!
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)

### Who is online

Users browsing this forum: No registered users and 22 guests