Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version
Go to top

Making a Voice Recorder on Windows Phone

, 30 Mar 2011
Demonstration of what needs to be done to make a voice recorder on Windows Phone 7 including converting the raw bytes from the recording into a WAVE file.
WpVoiceMemo.zip
J2i.Net.VoiceRecorder
ApplicationIcon.png
Background.png
Bin
Debug
icons
Release
ApplicationIcon.png
Background.png
icons
appbar.add.rest.png
appbar.cancel.rest.png
appbar.delete.rest.png
appbar.edit.rest.png
appbar.feature.email.rest.png
appbar.feature.settings.rest.png
appbar.questionmark.rest.png
appbar.save.rest.png
appbar.transport.pause.rest.png
appbar.upload.rest.png
Converters
icons
appbar.add.rest.png
appbar.cancel.rest.png
appbar.delete.rest.png
appbar.edit.rest.png
appbar.feature.email.rest.png
appbar.feature.settings.rest.png
appbar.questionmark.rest.png
appbar.save.rest.png
appbar.transport.pause.rest.png
appbar.upload.rest.png
dark
appbar.transport.play.rest.png
light
appbar.transport.play.rest.png
Images
CassetteTapeBackground.JPG
MicrophoneBackground.JPG
J2i.Net.VoiceRecorder.csproj.user
obj
Properties
SampleData
SplashScreenImage.jpg
Utility
ViewModels
J2i.Net.VoiceRecorder.Documentation
Account
App_Data
bin
Global.asax
Images
MicProgramRelationship-dog.png
MicProgramRelationship-quick.png
MicProgramRelationship-The.png
MicProgramRelationship.png
ScreenShot.png
SourcePhylogeny.png
wp7_English_152x50_blue.png
J2i.Net.VoiceRecorder.Documentation.csproj.user
obj
Debug
TempPE
Release
TempPE
Properties
Scripts
Styles
using System;
using System.ComponentModel;
using System.Net;
using System.Runtime.Serialization;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using J2i.Net.VoiceRecorder.Utility;

namespace J2i.Net.VoiceRecorder.ViewModels
{
    [DataContract]
    public class ConfigurationViewModel: INotifyPropertyChanged  
    {

        static DataSaver<ConfigurationViewModel> _myDataSaver = new DataSaver<ConfigurationViewModel>();

        public static ConfigurationViewModel GetConfiguration()
        {
            var retVal = _myDataSaver.LoadMyData("settings/configuration.xml") ??
                                            new ConfigurationViewModel();
            return retVal;
        }

        public void SaveConfigurationViewModel()
        {
            _myDataSaver.SaveMyData(this, "settings/configuration.xml");
        }
                
    // AllowRunUnderLockScreen - generated from ObservableField snippet - Joel Ivory Johnson

      private bool _AllowRunUnderLockScreen;
        [DataMember]
      public bool AllowRunUnderLockScreen
      {
        get { return _AllowRunUnderLockScreen; }
          set
          {
              if (_AllowRunUnderLockScreen != value)
              {
                  _AllowRunUnderLockScreen = value;
                  OnPropertyChanged("AllowRunUnderLockScreen");
              }
          }
      }
     //-----


        public event PropertyChangedEventHandler PropertyChanged;
        protected void OnPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
      
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

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

Share

About the Author

Joel Ivory Johnson
Software Developer Razorfish
United States United States
I attended Southern Polytechnic State University and earned a Bachelors of Science in Computer Science and later returned to earn a Masters of Science in Software Engineering.
 
For the past few years I've been providing solutions to clients using Microsoft technologies for web and Windows applications.
 
While most of my CodeProject.com articles are centered around Windows Phone it is only one of the areas in which I work and one of my interests. I also have interest in mobile development on Android and iPhone. Professionally I work with several Microsoft technologies including SQL Server technologies, Silverlight/WPF, ASP.Net and others. My recreational development interest are centered around Artificial Inteligence especially in the area of machine vision.
 
Follow on   Twitter

| Advertise | Privacy | Mobile
Web03 | 2.8.140921.1 | Last Updated 31 Mar 2011
Article Copyright 2011 by Joel Ivory Johnson
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid