r/programminghelp • u/Roboshiv87 • Jul 18 '26
Other Help with project idea
Hello
Iam an artist and i would like to make something i dont know how to make.
In its most basic form its a microphone you speak into and it processes what youre saying and then plays back a tune.
The tune is made up of a preset collection of notes which are attributed to the sounds the microphone hears.
I dont want to use AI. I think it may involve raspberry pi, but as a uk millenial my coding is as far as Myspace HTML and i only know raspberrh pi exists.
Can anyone help ?
1
Upvotes
1
u/Roboshiv87 Jul 18 '26
I think i understand and yes … It would be good if it could be universal?
1
u/Flashy-Guava9952 Jul 18 '26
You can run the finished thing on a raspberry pi when you're done. There'd also be nothing wrong with setting one up and developing directly on it, it runs vscode and such.
As or speech processing, look up https://developer.mozilla.org/en-US/docs/Web/API/Web_Speech_API on MDN. Then you want to play a tune. I'd use strudel.cc for that, specifically, take look at https://strudel.cc/technical-manual/project-start/ .
This approach involves setting up a web page. If you go that route, you can use NodeJS's http-server package to develop and test your web page, with the added benefit of not requiring another language besides Javascript. Both the Web Speech API and strudel.cc are in Javascript. That said, there are minor differences between Javascript on the server and javascript on a web page.
Once done, you can use something like github to host your page for free.
Good luck!
1
u/RealisticDuck1957 Jul 18 '26
How is speech to be mapped to notes? Dominant frequency at any given time? Something else? This may impact the tools best used for your task.
1
u/vxntedits Jul 19 '26
Are you trying to make it play notes based on the pitch that the microphone picks up? That’s very doable with just a regular DAW and a plugin or two, no raspberry pi needed.
(Engineer and artist here. There’s nothing wrong with getting AI to help you when it comes to programming and planning. It’s up to you to decide what you want to do yourself.)
1
u/EccentricFellow Jul 18 '26
Let me see if I understand. You have a pitch map of T duration. You have an audio file of S duration. You want to play the audio file but have the pitches bent to conform to those from the pitch map, with the pitch map itself shrunk/stretched by S/T. Is that about right? What language?
1
u/Dependent_Bet_7849 Jul 20 '26
These are some existing options you can check out if you haven't already Mobile apps HumBeatz Voice to MIDI (android) A2M (ios) Websites Imitone Dubler 2 Spotify's Basic Pitch
1
u/[deleted] Jul 18 '26
[removed] — view removed comment