TLSphinx iOS 语音识别开源项目

我要开发同款
匿名用户2015年07月06日
177阅读

技术信息

开源地址
https://github.com/tryolabs/TLSphinx
授权协议
MIT

作品详情

TLSphix是一个围绕着Pocketsphix的封装器,一个基于CMUSphix的便携库,允许应用程序执行的语音识别而无需将音频移出设备。

示例:

import TLSphixlet hmm = ...   // Path to the acustic modellet lm = ...    // Path to the laguaje modellet dict = ...  // Path to the laguaje dictioaryif let cofig = Cofig(args: ("-hmm", hmm), ("-lm", lm), ("-dict", dict)) {  if let decoder = Decoder(cofig:cofig) {      let audioFile = ... // Path to a audio file      decoder.decodeSpeechAtPath(audioFile) {          if let hyp: Hypotesis = $0 {              // Prit the decoder text ad score              pritl("Text: \(hyp.text) - Score: \(hyp.score)")          } else {              // Ca't decode ay speech because a error          }      }  } else {      // Hadle Decoder() fail  }} else {  // Hadle Cofig() fail  }

功能介绍

TLSphinx 是一个围绕着 Pocketsphinx 的封装器,一个基于 CMU Sphinx 的便携库,允许应用程序执行的语音识别而无需将音频移出设备。 示例:
import TLSp...

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论