1
asp.net 사이트 용 Microsoft Speech Object Library를 사용할 수 있다는 것을 알고 있습니다. 그러나 그것은 클라이언트에 의존 하는가, 아니면 서버에서 오는가? 나는 클라이언트가 Mac이나 Linux와 같은 것을 사용하는 것에 전혀 의존하고 있는지 알고 싶다.Microsoft 음성 개체 라이브러리 - 클라이언트 또는 서버?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using SpeechLib;
using System.Threading;
namespace ARIES.Web.Controllers
{
public class HomeController : Controller
{
public static SpVoice speach;
public ActionResult Index()
{
ViewBag.Message = "Welcome to ASP.NET MVC!";
speach = new SpVoice();
//speach.Speak("This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test ", SpeechVoiceSpeakFlags.SVSFDefault);
speach.Speak("This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test", SpeechVoiceSpeakFlags.SVSFlagsAsync);
//speach.WaitUntilDone(Timeout.Infinite);
return View();
}
public void Stop()
{
speach.Pause();
speach = new SpVoice();
speach.Speak("Stopped", SpeechVoiceSpeakFlags.SVSFlagsAsync);
}
}
}
페이지로드시 서버에서 호출 중이며 ajax 호출입니다. ajax 호출은 "Stop"메서드를 호출하고 재생중인 사운드를 중단합니다. 소리가 들리지만 내 로컬에서 프로젝트를 실행하고 있기 때문에 그 것인지 궁금합니다. 이것은 Firefox에서 작동했습니다. –
예, 사이트에서 로컬로 사이트를 실행하고있어 음성 개체가 컴퓨터에서 실행되기 때문에 소리가 들립니다. 원격 발신자는 아무 것도 듣지 못합니다. – Venr
네 주변에 아무것도 없어. –