내 프로젝트는 내레이터를 사용하여 모든 단어를 재생하는 방법은 무엇입니까?
string amma = myacess.Text;
// string[] words = Regex.Split(amma,"*");
char[] delimeter = new char[] { '*' };
string[] words = amma.Split(delimeter, StringSplitOptions.RemoveEmptyEntries);
for(int i = 0; i < words.Length; i++) {
string audio = words[i];
if(audio == "a") {
SoundPlayer sndplayr = new SoundPlayer(WindowsFormsApplication1.Properties.Resources.aa);
sndplayr.Play();
}
if(audio == "u") {
SoundPlayer sndplayr = new SoundPlayer(WindowsFormsApplication1.Properties.Resources.i);
sndplayr.Play();
}
}
하지만 입력 텍스트가 "AU는"그것은 단지 "U"사운드를 재생합니다, 내 코드는 여기에, 음성 프로젝트에 텍스트입니다. 하지만 브레이크 포인트를 놓고 F11을 누르면 사운드와 사운드가 재생됩니다. 뒤에 이유가 무엇입니까. 도와 주실 수 있으신가요?
thanx Tim, 문제 해결을 도와 줄 수 있습니까? – user1567372