iNDS icon indicating copy to clipboard operation
iNDS copied to clipboard

Microphone

Open Anuskuss opened this issue 10 years ago • 37 comments

I've never seen a mobile Nintendo DS emulator with microphone support, but I would appreciate this feature since I can't continue playing Nintendogs.

Anuskuss avatar Dec 21 '15 01:12 Anuskuss

I'll put that on the todo list. There's code in there for microphone input so it shouldn't be too hard to implement.

WilliamLCobb avatar Dec 21 '15 19:12 WilliamLCobb

Would it record my voice accuratly or would it just play a dark noise?

Anuskuss avatar Dec 23 '15 02:12 Anuskuss

Not sure yet. Worst case scenario you'll have the option to play different noises. Hopefully though I can get live recording to work.

WilliamLCobb avatar Dec 27 '15 18:12 WilliamLCobb

It would be good if you could get the mic to work. If anything you could also check to see if desmume has some code for mic imput .

ghost avatar Dec 27 '15 19:12 ghost

@pmp174 how do I input those cheats into iNDS? For the fake microphone blowing?

Pepperoony avatar Jan 06 '16 04:01 Pepperoony

@pepperoony I have not tried this cheat but the correct way to do it is by going to the cheat menu clicking the + button and adding the code . If you need a mic cheat try to see if in the issue I refreced above there is one. Also search some up at some type of cheat database.

ghost avatar Jan 06 '16 04:01 ghost

Oh, it's in the latest IPA right? Could you send that to me please?

Pepperoony avatar Jan 06 '16 04:01 Pepperoony

Sure what's your email?

ghost avatar Jan 06 '16 04:01 ghost

[email protected]

Luke Rooney/ Manager of Marketing [email protected](mailto:[email protected])/(562)-360-4258(tel:(562)-360-4258)

Trinity Corporation ServiteHS.org 1952 W La Palma Ave, Anaheim(x-apple-data-detectors://5/2)

On Jan 5, 2016, 8:54 PM -0800, Darby Martí[email protected], wrote:

Sure what's your email?

— Reply to this email directly orview it on GitHub(https://github.com/WilliamLCobb/iNDS/issues/23#issuecomment-169220650).

Pepperoony avatar Jan 06 '16 05:01 Pepperoony

@Pepperoony sent

ghost avatar Jan 06 '16 05:01 ghost

Any updates yet?

Anuskuss avatar Jan 14 '16 21:01 Anuskuss

I'm making progress I just need some save states to test it on. If anyone has any please send them through the in app bug reporting

WilliamLCobb avatar Apr 04 '16 22:04 WilliamLCobb

Seems like you are making progress. I will try to check my drop box but my app got deleted so no guarantee of save states .

ghost avatar Apr 05 '16 03:04 ghost

If you want to test it just download one of the Nintendogs, buy a dog and pet it until the game asks you to give him a name via the microphone (no save needed as it takes ~2 minute to reach to that point).

Anuskuss avatar Apr 05 '16 16:04 Anuskuss

Didn't mean to close this issue :/

And thanks! I'll test nintendogs today

WilliamLCobb avatar Apr 05 '16 18:04 WilliamLCobb

I have the microphone successfully picking up sound and writing it to a buffer for the emulator to use. However DeSmuME is only reading around 130 samples a second... which is bad because it should be 16000.

I think any point where you just need to blow into the mic will work now but voice recognition probably will not. I'll update the beta branch soon and anyone who wants to test it out can.

WilliamLCobb avatar Apr 08 '16 21:04 WilliamLCobb

It would be perfect if it could recognize my voice accuratly, since it can be used to call your dog in Nintendogs. A simple blow would let me continue the game, but it's sad that I can't call him (but it's still possible to whistle (with the menu) and the dog still comes to you).

Anuskuss avatar Apr 08 '16 22:04 Anuskuss

Most of games don't make a difference between voice and just a blow. I'm stuck in WarioWare Touched! because of that mic issue :/

Btw, very great job !

Macrey avatar Apr 09 '16 17:04 Macrey

Ready for testing. The iPhone microphone is so sensitive it makes it kind of hard to emulate the DS's. Loud noises from far away are picked up as static and make the game think you're blowing into the mic. I might need to turn the sensitivity down some or add an option to disable the mic.

Please send an inapp report or post back here if you guys get a chance to test it

WilliamLCobb avatar Apr 11 '16 00:04 WilliamLCobb

Nintendog works perfectly for me so its looking good. Hopefully other games will too

WilliamLCobb avatar Apr 11 '16 01:04 WilliamLCobb

Man I wish I had a Mac to test it (or the time to setup a virtual machine),

Anuskuss avatar Apr 11 '16 21:04 Anuskuss

@WilliamLCobb You said nintendogs is working perfectly for you now? I gave the app permission to access mic but it seems like nothing is going through, the dog isn't picking up anything

kb317 avatar Apr 14 '16 21:04 kb317

@WilliamLCobb First of all, thank you for implementing microphone support in iNDS. My problems so far:

  • The 130 Hz is indeed not enough. I tried to give my dog a name, he "hears" it, but throws some question marks (aka he's not understanding).
  • I updated through Cydia and the app ask me for microphone permission. When I build it through Xcode (I have finally found the time to set up a Hackintosh so I can help you beta testing now :relieved:), the app doesn't ask me (I checked the privacy settings but it wasn't there).
  • I can't turn off Enable mic (.plist problem?)
  • I sometimes talk but it doesn't get all of it (refresh rate to high?)
  • This one is strange: I have to enable Volume Button Bumpers to get microphone to work (you can disable it afterwards). | rename .txt to .mp4 | @kb317 Can you try this?

Anuskuss avatar Apr 14 '16 22:04 Anuskuss

@Anuskuss @WilliamLCobb I enabled volume button bumpers - it's now picking up my voice but sounds super distorted, the dog is doing the same question marks you mentioned.

kb317 avatar Apr 15 '16 01:04 kb317

When you enable volume button bumpers it correctly sets the state of the audio session to pick up the microphone. I forgot to add that for when you don't enable those. I'll fix it today.

Also I turned down the sensitivity of the mic because mine was so loud but it may be different for other phones. I can add an option to set it manually.

Also how do you know what your voice sounds like? Does t replay it in nintendogs?

WilliamLCobb avatar Apr 15 '16 14:04 WilliamLCobb

@WilliamLCobb Yes. after you speak, the game replays it.

kb317 avatar Apr 15 '16 15:04 kb317

Do you hear your voice at all and it's distorted? Or do you just hear white noise?

WilliamLCobb avatar Apr 15 '16 20:04 WilliamLCobb

@WilliamLCobb I hear my voice, but it's heavily distorted.

kb317 avatar Apr 15 '16 21:04 kb317

I tried to send a save state for this issue through bug reporting, but it gave me an error. Is there any other way I could send the state?

K0m0 avatar Apr 18 '16 17:04 K0m0

@K0m0 You could synch it with dropbox (or get the files from iTunes) and upload the save state here.

essiw avatar Apr 18 '16 19:04 essiw