

- #VOICE RECORDER ON MY PHONE HOW TO#
- #VOICE RECORDER ON MY PHONE SOFTWARE#
- #VOICE RECORDER ON MY PHONE CODE#
- #VOICE RECORDER ON MY PHONE WINDOWS#
The Microphone class records audio in chunks and passes each chunk back to your program while it continues to record a new chunk.
#VOICE RECORDER ON MY PHONE CODE#
Before I present the code on how recording is implemented, I want to visually illustrate how recording works so that I can also demonstrate the bug. Unfortunately, many of them also contain the same bug.
#VOICE RECORDER ON MY PHONE HOW TO#
There's plenty of examples on the Internet on how to record audio on WP7.


Recording audio with the Microphone class Having done this, I need not give FrameworkDispatcher.Update another thought it will automatically be started when the program starts and automatically shutdown when the program ends. The class will take care of calling this function for you. Rather than convolute your program logic with a timer calling this function, you can make use of an example ApplicationService that Microsoft provides for performing this same function. Use of the audio related XNA classes require that FrameworkDispatcher.Update() be called periodically. While you can't use XNA rendering classes in a Silverlight application, you can use many of the other XNA classes. So I am using a Silverlight UI for this application.įor recording audio, I must make use of the Microphone class from. Within XNA, you are responsible for building your own solution for presenting information. Silverlight offers several controls that can be used for building the application's UI from a designer such as buttons, text boxes, labels, and so on. There's no way for you to use XNA rendering classes from a Silverlight application or vice versa. You must exclusively use one type of UI presentation layer or the other.
#VOICE RECORDER ON MY PHONE WINDOWS#
There are two types of applications that you can create on Windows Phone: those that make use of the Silverlight for their UI, and those that make use of XNA rendering classes for UI. Using XNA classes from a Silverlight application This is a simple beginning and something on which other features can be added later. Rather than making the application overly complex, I chose a minimum feature set so that I could accomplish a primary goal of actually producing something to deliver that is simple enough such that I don't have a lot of potential places in which bugs could occur. It quickly can progress from something simple to something complex. In no particular order, some of the things I thought about included the following:Īs you can see, there's a lot of different things that one could add to a voice memo application. Deciding on a Feature Setīefore starting on the application, I sat down and listed and prioritized the features that I wanted the application to have. But the Express edition in the Developer Tools will work just as well.
#VOICE RECORDER ON MY PHONE SOFTWARE#
The only software you need to work with this code is a Windows PC and the Windows Phone Developer Tools from (a free download!). Since I've put this program together, I plan to make more changes to it next week (top priority: making the program look good!). As mentioned above, if you use the code, it's up to you to apply your own graphics. This post is all about functionality and since I'm giving the code away, I didn't want to invest a lot into my graphic artist to only give the image assets away. I've decidedly have not yet spent any effort in making this program interface pretty. Though I highly discourage you from submitting it back to the Windows Phone Marketplace in unmodified form. But if you don't, I won't hold it against you. If you want to use it in your own app, I'd appreciate receiving a message just to tell me that you've found the code useful. Feel free to use this code in about any manner you want. I've made this voice memo application, have put it through Marketplace certification, and made the source code available to all who wish to use it. I'm sure the questions will come up again and I thought it would be of value to have an example to which I could refer when these questions came up. There's a popular set of questions that come up in the forums related to working with the microphone, making usable recordings from it, and a few other things.
