如何自己編寫語音識別系統sdk
2 安裝sdk.分別將下載的三個安裝包解壓安裝就可以了(記住安裝目錄). 3 環境配置.這里我們需要將您安裝的Microsoft Speech SDK安裝目錄中的頭文件目錄,以及庫文件目錄添加到你的VC++6.0開發環境中.打開VC++開發工具,選擇其中的“工具”->“選項”選項卡,然后安裝如下圖所示的圖示操作:
關于語音識別,這種程序的流程,要如何編寫
微軟有提供語音識別的編程接口,百度就有了,看這個 http://blog.csdn.net/yingfox/archive/2007/12/01/1910781.aspx
語音識別系統怎末設計?用c++和vc++可以搞定吧?
1:語音采集系統,可通過對PC的聲卡進行編程實現 2,選擇合適的語音識別算法,關鍵是語音參數提取,模式識別等,比較復雜(可參閱數字信號處理) 在PC平臺下,用c++和vc++可以搞定
如何用Tensorflow開發一個簡單的語音識別器
Ubuntu安裝tensorflow 先安裝python-dev,再安裝tensorflow就好了 $ sudo apt-get install python-dev
智能語音識別系統方案怎么做
“語音”作為人工智能領域落地成熟的智能交互技術,已經步入商業化階段.如:語音助手、智能家居、智能客服、智能機器人、智能車載等都是語音交互的重要應用. 英唐眾創的智能語音識別系統方案里,智能交互技術方面主要包含前端信號處理、語音識別、語音合成、聲紋識別、語義理解、情緒識別、智能多輪對話等. 在這個方案里,可以實現了實現了語音喚醒,語音合成,語義解析三大基礎功能 ,可以對場景進行開發.
如何進行語音識別 android開發
語音識別
2008年Google語音搜索在iphone平臺上線,Android 1.5 將語音識別應用到搜索功能上。
手動輸入是目前主要與手機互動的方式,語音搜索宗旨是最大限度地改善人機交互的便捷性。
在玩游戲時,通過語音來控制操作,更顯得人性化,體驗更佳。
Android 中主要通過RecognizerIntent來實現語音識別。
RecognizerIntent包括的常量
ACTION_RECOGNIZE_SPEECH
ACTION_WEB_SEARCH
EXTRA_LANGUAGE
EXTRA_LANGUAGE_MODEL
EXTRA_MAX_RESULTS
EXTRA_PROMPT
EXTRA_RESULTS
LANGUAGE_MODEL_FREE_FORM
LANGUAGE_MODEL_WEB_SEARCH
RESULT_AUDIO_ERROR
RESULT_CLIENT_ERROR
RESULT_NETWORK_ERROR
RESULT_NO_MATCH
RESULT_SERVER_ERROR
// 打開語音識別
Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
intent.putExtra(RecognizerIntent.EXTRA_PROMPT, “開始語音”);
startActivityForResult(intent, VOICE_RECOGNITION_REQUEST_CODE);
在模擬器上找不到語音設備,會拋出異常ActivityNotFoundException。
示例:
點擊“開始使用語音識別”按鈕后,開始語音輸入,然后在onActivityResult方法中取得結果并顯示出來
protect void onActivityResult(int requestCode, int resultCode, Intent data) {
if(requestCode == VOICE_RECOGNITION_REQUEST_CODE && resultCode == RESULT_OK) {
ArrayListresults = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS); StringBuffer sb = new StringBuffer(); for(int i=0; i sb.append(results.get(i)); } Toast.makeText(this, sb.toString(), Toast.LENGTH_LONG).show(); super.onActivityResult(requestCode, resultCode, data); }
怎樣用java做語音識別
這塊國內一般都用科大訊飛的語音云來做語音識別.不過那個接口是c/c++的,用JAVA來調用的話要通過java調用dll的技術,類似于 jni 或者 jna 都可以
C#如何開發語音識別,最好有例子
語音識別小程序,調用了windows的識別組件。精簡了一些代碼,算是比較簡單易懂的一個語音識別類。
開發測試環境win7,VS2008。如果有其它環境中的,歡迎補充。
SRecognition.cs
using System;
using System.Speech.Recognition;
using System.Globalization;
using System.Windows.Forms;
namespace NingTao
{
public class SRecognition
{
public SpeechRecognitionEngine recognizer = null;//語音識別引擎
public DictationGrammar dictationGrammar = null; //自然語法
public System.Windows.Forms.Control cDisplay; //顯示控件
public SRecognition(string[] fg) //創建關鍵詞語列表
{
CultureInfo myCIintl = new CultureInfo(“zh-CN”);
foreach (RecognizerInfo config in SpeechRecognitionEngine.InstalledRecognizers())//獲取所有語音引擎
{
if (config.Culture.Equals(myCIintl) && config.Id == “MS-2052-80-DESK”)
{
recognizer = new SpeechRecognitionEngine(config);
break;
}//選擇識別引擎
}
if (recognizer != null)
{
InitializeSpeechRecognitionEngine(fg);//初始化語音識別引擎
dictationGrammar = new DictationGrammar();
}
else
{
MessageBox.Show(“創建語音識別失敗”);
}
}
private void InitializeSpeechRecognitionEngine(string[] fg)
{
recognizer.SetInputToDefaultAudioDevice();//選擇默認的音頻輸入設備
Grammar customGrammar = CreateCustomGrammar(fg);
//根據關鍵字數組建立語法
recognizer.UnloadAllGrammars();
recognizer.LoadGrammar(customGrammar);
//加載語法
recognizer.SpeechRecognized += new EventHandler
//recognizer.SpeechHypothesized += new EventHandler
}
public void BeginRec(Control tbResult)//關聯窗口控件
{
TurnSpeechRecognitionOn();
TurnDictationOn();
cDisplay = tbResult;
}
public void over()//停止語音識別引擎
{
TurnSpeechRecognitionOff();
}
public virtual Grammar CreateCustomGrammar(string[] fg) //創造自定義語法
{
GrammarBuilder grammarBuilder = new GrammarBuilder();
grammarBuilder.Append(new Choices(fg));
return new Grammar(grammarBuilder);
}
private void TurnSpeechRecognitionOn()//啟動語音識別函數
{
if (recognizer != null)
{
recognizer.RecognizeAsync(RecognizeMode.Multiple);
//識別模式為連續識別
}
else
{
MessageBox.Show(“創建語音識別失敗”);
}
}
private void TurnSpeechRecognitionOff()//關閉語音識別函數
{
if (recognizer != null)
{
recognizer.RecognizeAsyncStop();
TurnDictationOff();
}
else
{
MessageBox.Show(“創建語音識別失敗”);
}
}
private void recognizer_SpeechRecognized(object sender, SpeechRecognizedEventArgs e)
{
//識別出結果完成的動作,通常把識別結果傳給某一個控件
string text = e.Result.Text;
cDisplay.Text += text;
}
private void TurnDictationOn()
{
if (recognizer != null)
{
recognizer.LoadGrammar(dictationGrammar);
//加載自然語法
}
else
{
MessageBox.Show(“創建語音識別失敗”);
}
}
private void TurnDictationOff()
{
if (dictationGrammar != null)
{
recognizer.UnloadGrammar(dictationGrammar);
//卸載自然語法
}
else
{
MessageBox.Show(“創建語音識別失敗”);
}
}
}
}
form調用,其中2個按鈕(開始,停止),1個文本框(識別結果)
using System;
using System.Windows.Forms;
namespace NingTao
{
public partial class Form1 : Form
{
private SRecognition sr;
public Form1()
{
InitializeComponent();
string[] fg = { “東方”, “西方”, “南方”, “北方” };
sr = new SRecognition(fg);
button2.Enabled = false;
}
private void button1_Click(object sender, EventArgs e)
{
sr.BeginRec(textBox1);
button1.Enabled = false;
button2.Enabled = true;
}
private void button2_Click(object sender, EventArgs e)
{
sr.over();
button1.Enabled = true;
button2.Enabled = false;
}
}
}
如何實現語音識別功能
mui 框架所自帶的功能!
代碼附上:
請問大蝦,怎樣進行語音采樣和識別? 目的想做一個語音識別器.
太廣泛了. 語音識別的步驟大概分為預處理,特征參數提取,訓練.預處理又包括預加重, 分幀加窗,端點檢測,抗混濾波.特征參數提取又有線性預測系數與mel系數的區別.訓練有DTW方法或者隱馬爾科夫法.用matlab軟件可以實現上述步驟還有采樣. 要具備數字信號處理和matlab的基礎. goodluck