小编Jos*_*ith的帖子

在rails 3中未发现rake任务

我无法开始使用rails 3.0.0,因为它只是不加载rake任务

耙宝石:安装

rake aborted!
Don't know how to build task 'gems:install'
Run Code Online (Sandbox Code Playgroud)

耙-T

rake about              # List versions of all Rails frameworks and the environment
rake db:create          # Create the database from config/database.yml for the current Rails.env (use db:create:all to create all dbs in the config)
rake db:drop            # Drops the database for the current Rails.env (use db:drop:all to drop all databases)
rake db:fixtures:load   # Load fixtures into the current environment's database.
rake db:migrate         # Migrate the database (options: VERSION=x, …
Run Code Online (Sandbox Code Playgroud)

rake rubygems ruby-on-rails bundler ruby-on-rails-3

4
推荐指数
1
解决办法
4254
查看次数

如何检测句子检测是否在语音到文本(Unity IBM Watson sdk)中完成?

我想在每次完成检测句子时将句子发送到服务器。

例如,当它检测到我说“我该怎么做”时。我想把这句话发给服务器。但是,每次尝试组成句子时都会调用以下方法。例如,当我说“How do I do”时,它会打印“how”、“how do”、“how do I do”,有没有地方我可以知道一个句子已经完成了?

private void OnRecognize(SpeechRecognitionEvent result)
{
    m_ResultOutput.SendData(new SpeechToTextData(result));

    if (result != null && result.results.Length > 0)
    {
        if (m_Transcript != null)
             m_Transcript.text = "";

        foreach (var res in result.results)
        {
            foreach (var alt in res.alternatives)
            {
                string text = alt.transcript;

                if (m_Transcript != null)
                {
                        //   print(text);

                        //m_Transcript.text += string.Format("{0} ({1}, {2:0.00})\n",
                        //    text, res.final ? "Final" : "Interim", alt.confidence);

                        m_Transcript.text = text;
                }
            }       
        }   
    }
}
Run Code Online (Sandbox Code Playgroud)

unity-game-engine ibm-watson

4
推荐指数
1
解决办法
489
查看次数

如何在沃森统一sdk中控制听动作?

我正在Unity3D中处理语音到文本项目.我对这个主题非常新,所以尝试修改Watson Unity SDK的演示以了解它是如何工作的.我试图停止并启动Speech-toText函数的监听操作,但它会不停地监听并转换为文本.有没有人可以指引我到我应该看的地方?

我正在使用Unity 5.3.4p4.我从这里下载了SDK - https://github.com/watson-developer-cloud/unity-sdk

谢谢

speech-to-text unity-game-engine ibm-watson

0
推荐指数
1
解决办法
454
查看次数