JavaScript 语音识别 Pocketsphinx.js

码农软件 · 软件分类 · TTS/语音合成和处理 · 2019-10-04 07:28:51

软件介绍

Pocketsphinx.js 是一个在浏览器上通过纯 JavaScript 实现语音识别的功能,支持 Chrome 和 Firefox 浏览器。提供录音的功能。

特性:

  • 100% 纯 JavaScript API,

  • 可通过 Web Workers 录制

  • 支持 PocketSphinx 所支持的所有声音模型

  • 支持大多数 PocketSphinx 的命令行参数

  • 支持 JavaScript 有限状态语法 FSG 输入

  • 支持在编译时的来自文件的统计语言模型

  • 支持键盘监测

  • 可用于实时识别的可选音频录制库

示例代码:

var array = ... // array that contains an audio buffer
var buffer = new Module.AudioBuffer();
for (var i = 0 ; i < array.length ; i++)
    buffer.push_back(array[i]); // Feed the array with audio data
var output = recognizer.start(); // Starts recognition on current language model
output = recognizer.process(buffer); // Processes the buffer
var hyp = recognizer.getHyp(); // Gets the current recognized string (hypothesis)
/* ... */
for (var i = 0 ; i < array.length ; i++)
    buffer.set(i, array[i]); // Feed buffer with new data
output = recognizer.process(buffer);
hyp = recognizer.getHyp();
/* ... */
output = recognizer.stop();
// Gets the final recognized string:
var final_hyp = recognizer.getHyp();
buffer.delete();

在线演示:http://syl22-00.github.io/pocketsphinx.js/live-demo-chinese.html

本文地址:https://codercto.com/soft/d/15994.html

Chinese Authoritarianism in the Information Age

Chinese Authoritarianism in the Information Age

Routledge / 2018-2-13 / GBP 115.00

This book examines information and public opinion control by the authoritarian state in response to popular access to information and upgraded political communication channels among the citizens in co......一起来看看 《Chinese Authoritarianism in the Information Age》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具