Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I'm volunteering for a local community theatre that is performing 'Spongebob, the Musical' in August. One of the characters in the show is a computer. I need to have a screen that she'll move around on stage that presents a visual representation of her voice. I'm going to have a small windows computer and screen on a mobile platform that she rolls around with her. I'd like something like a spectrum analyzer that would be flat when she isn't talking and show activity when she does talk. I thought I could use a cheap Bluetooth microphone to pick up her voice. The screen would need to be visible from over 40 feet away.
Is there an existing project or sample code that I could adapt to do this. I'm a retired database programmer but I have little experience with C#.

What I have tried:

my original plan was to have several static image files. One file would be an image file with single flat line that would be displayed when the character is not speaking. When the character is talking the program would quickly loop through a small set of different image files with different squiggly lines.
Posted
Updated 9-Jul-23 21:36pm
Comments
Jo_vb.net 9-Jul-23 18:43pm    
You could look at this article
https://www.codeproject.com/Articles/26736/Manage-Data-in-a-WinForms-Application-without-the

You can save images like in a database and select the one you need.
Graeme_Grant 9-Jul-23 19:33pm    
This is a programming issue forum, not a general "how do I" do anything computer related. Below are the posting guidelines from the page where you posted this question:

A few simple rules when posting your question.
1. Be courteous. Everyone here helps because they enjoy helping, not because it's their job.
2. Have you searched or Googled for a solution?
3. Be specific! eg "How do I change the dialog colour?" instead of "My code doesn't work. Help?"
4. Tag your question appropriately.
5. If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
6. Do not remove or empty a message if others have replied.
7. Your question may be edited or retagged by others. Anything inappropriate will be removed.

The following parts is a little confusing -
Quote:
I'm going to have a small windows computer and screen on a mobile platform that she rolls around with her
compared to -
Quote:
The screen would need to be visible from over 40 feet away
. As mentioned above, this might pose a challenge.

That being said, I think you are looking for the following that will point you in the right direction -
How to Generate Spongebob AI Voice Via Text-to-Speech Tech[^]

You can also use the MS 'SpeechSynthesizer' method - SpeechSynthesizer.SpeakAsync Method[^]

Both the above comes with step-by-step tutorials or sample code.

To address the playing of the image files or gif's, look at the following -
play an animation only using C#[^]
Github animator apps[^]
 
Share this answer
 
Comments
Peter Johnson 2023 26-Jul-23 20:42pm    
thank you for your reply. It ended up being beyond my skills to figure this out in such a short time so I ended up licensing an inexpensive spectrum analyzer with a wireless microphone.
Andre Oosthuizen 27-Jul-23 8:03am    
You're welcome. Glad you could find a workable solution
I ended up using a spectrum analyzer from TruAudio with a wireless microphone.
 
Share this answer
 
v2
Comments
PIEBALDconsult 26-Jul-23 23:43pm    
Please don't try to answer your own question, just use the Improve question button.
This isn't a dev question, but ...

The simplest solution is to get something like Audacity or an online visualizer (Microphone Sound Analyzer[^] is one) and genuinely display the mic input ... if the mic has a mute button she can operate that would prevent "background" distorting the voice display when she isn't speaking.

Good luck with the "40 feet away" bit - you're going to need a pretty big display!
 
Share this answer
 
Comments
Peter Johnson 2023 26-Jul-23 20:40pm    
thanks for your reply. I did look at audacity but the screen wouldn't be visible from the audience.

I ended up using a spectrum analyzer from TruAudio with a wireless microphone.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900