導航:首頁 > 操作系統 > android中文語音識別

android中文語音識別

發布時間:2024-10-23 14:55:53

android 百度怎麼使用語音識別轉化成文字

網路Android語音識別SDK分在線與離線兩種,這篇文章介紹在線SDK的使用方法。
在線SDK是以JAR包和動態鏈接庫形式發布和使用,可以從網路開放雲平台網站中下載SDK及使用說明文檔。
http://developer..com/wiki/index.php?title=docs/cplat/media/voice
完成語音SDK的集成分以下幾步,本文將一步步介紹SDK集成方法。

1、注冊開放開放平台
點擊管理控制台,選擇移動應用管理

❷ android模擬器如何使用語音識別

程序讀取一個事先的錄音文件,然後將其數據導入語音識別程序中進行識別,識別結果可通過控制項顯示出來

❸ Android中如何添加語音識別功能詳細步驟和代碼

android.speech.RecognizerIntent這個包里。前提是你的手機支持此功能。

開啟操作:

Intent intent = newIntent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);//開啟語音識別功能。

intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM); //設置語言類型。
intent.putExtra(RecognizerIntent.EXTRA_PROMPT, "請說話,我識別");
startActivityForResult(intent,REQUEST_CODE);

在onActivityResult()里用:
data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS)取得google雲端反饋的數據即可。

❹ android上什麼語音識別軟體比較好用

科大訊飛是專門從事語音技術研究的公司,可以登錄官網看相關產品,比如訊飛的輸入法(自帶語音功能),還有些語音控制項等。而且訊飛是國內公司,支持國產!

❺ android 里有沒提供文字轉語音的類

Android手機本身是沒有提供語音轉換的,但是可以通過第三方SDK來實現。

自從蘋果推出Siri以後,語音助手類的功能就成為了大家關注的熱點,不少開發商也紛紛製作出自家的語音助手類應用。特別是經過這兩年的發展和完善,已經出現了不少相當方便好用的中文語音助手,以下挑選了其中比較出色的幾款應用:
1.訊飛語點
訊飛語點是由科大訊飛推出的一款中文語音助手。通過它可以實現語音撥打電話、發簡訊、查找和新建聯系人、設置提醒、查詢天氣、聽新聞、打開及搜索應用、周邊地理信息查詢、路線搜索、上網搜索、翻譯、聊天等多種功能。

2.網路語音助手
只看名字就知道這款語音助手應用來自網路。與多數語音助手類似,通過語音操作,用戶可以實現打電話、發簡訊、提醒設置、音樂播放、天氣查詢、航班查詢、周邊地理信息查詢、股票查詢、語音智能聊天等功能。

3.搜狗語音助手
搜狗語音助手有一個包含了本地生活信息、地圖、網路知識、便民工具查詢、新聞、圖片等信息的智能檢索庫,用戶可以通過語音提問的方式快速或者精準的回答。此外當然也少不了語音撥打電話、發簡訊、放音樂、定鬧鈴等一系列的手機語音操作功能。

4.蟲洞語音助手
「蟲洞」在基本功能上與其他同類語音助手類似,同樣可以用語音進行手機的部分操作以及在線查詢各種豐富的信息。

5.智能360
智能360同樣使用了Google和科大訊飛提供的語音識別技術,而中文語義解析則是其自主研發的引擎。在功能上同樣具備了智能聊天、備忘提醒、發簡訊、打電話、發微博、定位、查菜譜、查天氣、查新聞、應用刪除及下載、媒體播放、16種語言翻譯等等智能化功能。

以上幾款都有提供開發者中心有提供示例代碼,需要到相關官網注冊開發者帳號,所以作為用戶而言還是需要根據自己的具體需求來進行選擇。

❻ Android 上的語音識別是怎麼實現

語音識別,藉助於雲端技術可以識別用戶的語音輸入,包括語音控制等技術,下面我們將利用Google 提供的Api 實現這一功能。
功能點為:通過用戶語音將用戶輸入的語音識別出來,並列印在列表上。
功能界面如下:

步驟閱讀
2
用戶通過點擊speak按鈕顯示界面:
步驟閱讀
3
用戶說完話後,將提交到雲端搜索
步驟閱讀
4
在雲端搜索完成後,返回列印數據:
步驟閱讀

5
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a of the License at
*

*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.example.android.apis.app;

import com.example.android.apis.R;

import android.app.Activity;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.os.Bundle;
import android.speech.RecognizerIntent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;

import java.util.ArrayList;
import java.util.List;

/**
* Sample code that invokes the speech recognition intent API.
*/
public class VoiceRecognition extends Activity implements OnClickListener {

private static final int VOICE_RECOGNITION_REQUEST_CODE = 1234;

private ListView mList;

/**
* Called with the activity is first created.
*/
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

// Inflate our UI from its XML layout description.
setContentView(R.layout.voice_recognition);

// Get display items for later interaction
Button speakButton = (Button) findViewById(R.id.btn_speak);

mList = (ListView) findViewById(R.id.list);

// Check to see if a recognition activity is present
PackageManager pm = getPackageManager();
List activities = pm.queryIntentActivities(
new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH), 0);
if (activities.size() != 0) {
speakButton.setOnClickListener(this);
} else {
speakButton.setEnabled(false);
speakButton.setText("Recognizer not present");
}
}

/**
* Handle the click on the start recognition button.
*/
public void onClick(View v) {
if (v.getId() == R.id.btn_speak) {
startVoiceRecognitionActivity();
}
}

/**
* Fire an intent to start the speech recognition activity.
*/
private void startVoiceRecognitionActivity() {
Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
intent.putExtra(RecognizerIntent.EXTRA_PROMPT, "Speech recognition demo");
startActivityForResult(intent, VOICE_RECOGNITION_REQUEST_CODE);
}

/**
* Handle the results from the recognition activity.
*/
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == VOICE_RECOGNITION_REQUEST_CODE && resultCode == RESULT_OK) {
// Fill the list view with the strings the recognizer thought it could have heard
ArrayList matches = data.getStringArrayListExtra(
RecognizerIntent.EXTRA_RESULTS);
mList.setAdapter(new ArrayAdapter(this, android.R.layout.simple_list_item_1,
matches));
}

super.onActivityResult(requestCode, resultCode, data);
}

❼ Android開發 識別外界音樂變化

語音識別,這要用到RecognizerIntent類,這個是安卓提供的語音識別類,我明白你的意思,其實系統對語言分析做出響應,是聲音採集然後再對比,符合則做出對應的處理,其實音樂和語言是一樣的,通過RecognizerIntent類你可以設置你的語言庫,然後當服務開啟時,系統不斷對比來做出響應,思路是這樣的,我也沒用過這個類,我做游戲開發,,,至於具體的你可以去自己網路這個類,可能我說的也有不對的地方,僅供參考。

閱讀全文

與android中文語音識別相關的資料

熱點內容
漫畫教程pdf 瀏覽:890
qq相冊上傳源碼 瀏覽:537
ipad的解壓縮軟體 瀏覽:739
小米nfc模擬加密門禁卡收不到信息 瀏覽:394
單片機定時1ms 瀏覽:739
七日殺伺服器怎麼重置mod環境 瀏覽:64
pythonsh模塊 瀏覽:5
建行app還款怎麼自由設置金額 瀏覽:852
中國文學史游國恩pdf 瀏覽:617
銀行app上怎麼有兩個賬號 瀏覽:776
如何關閉某些app的震動 瀏覽:181
moba游戲源碼 瀏覽:333
方舟生存進化手游如何搜索伺服器 瀏覽:259
為什麼linux運行的伺服器沒有埠 瀏覽:323
python開發app伺服器 瀏覽:746
java實現一個線程 瀏覽:377
為什麼java比php工資高 瀏覽:687
java動態時間 瀏覽:352
程序員多久會淘汰 瀏覽:118
外國解壓視頻理發 瀏覽:921