<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          TLSphinxiOS 語音識別

          聯(lián)合創(chuàng)作 · 2023-09-27 15:26

          TLSphinx 是一個(gè)圍繞著 Pocketsphinx 的封裝器,一個(gè)基于 CMU Sphinx 的便攜庫,允許應(yīng)用程序執(zhí)行的語音識別而無需將音頻移出設(shè)備。

          示例:

          import TLSphinx
          let hmm = ...   // Path to the acustic model
          let lm = ...    // Path to the languaje model
          let dict = ...  // Path to the languaje dictionary
          if let config = Config(args: ("-hmm", hmm), ("-lm", lm), ("-dict", dict)) {
            if let decoder = Decoder(config:config) {
                let audioFile = ... // Path to an audio file
                decoder.decodeSpeechAtPath(audioFile) {
                    if let hyp: Hypotesis = $0 {
                        // Print the decoder text and score
                        println("Text: \(hyp.text) - Score: \(hyp.score)")
                    } else {
                        // Can't decode any speech because an error
                    }
                }
            } else {
                // Handle Decoder() fail
            }
          } else {
            // Handle Config() fail  
          }
          
          瀏覽 22
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評論
          圖片
          表情
          推薦
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  欧美午夜精品久久久久久蜜 | a视频在线 | 水蜜桃视频smt | 女人一级做aa免费看 | 久久成人亲子一区二区三区四区 |