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
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();
}
}
}