Click here to Skip to main content
15,893,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a voice recorder and player. and i want to change my voice after i recorded it. changing is not matter.it can be a deeper voice for example. i dont really care that. here is my code
C#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;

namespace SesProje
{
    public partial class Form1 : Form
    {
        [DllImport("winmm.dll", EntryPoint = "mciSendStringA", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
        private static extern int record(string lpstrCommand, string lpstrReturnString, int uReturnLength, int hwndCallback);
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            
            record("open new Type waveaudio Alias recsound", "", 0, 0);
            record("record recsound","", 0, 0);            
        }

        private void button2_Click(object sender, EventArgs e)
        {
            record("save recsound C:\\Users\\oguzhan\\Desktop\\ddd.wav","", 0, 0);
            record("stop recsound", "", 0, 0);
            record("close recsound", "", 0, 0);

            axWindowsMediaPlayer1.URL = "C:\\Users\\oguzhan\\Desktop\\ddd.wav";
            axWindowsMediaPlayer1.Ctlcontrols.play();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            axWindowsMediaPlayer1.close();

        }
    }
}
Posted

1 solution

Have a look at this: C# WAV file class, audio mixing, and some light audio manipulation[^] - it may help with some of the basics.
 
Share this answer
 
Comments
Oğuzhan Kalsın 11-Oct-15 10:34am    
it didnt help me at all... sorry

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