安卓PocketSphinx:语言模型的APK安装文件时不写入 [英] Android PocketSphinx: Language model files not written when installed from the apk

查看:178
本文介绍了安卓PocketSphinx:语言模型的APK安装文件时不写入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

PocketSphinx工作正常。也创造了一些专门的语音命令的字典。 当我安装PocketSphinx的指示说要在/ SD卡/安卓/数据在我的设备创建edu.cmu.pocketsphinx和子文件夹。和语言模型和DICS是present。 应用程序工作正常。

PocketSphinx works fine. Have also created some specialized voice command dictionaries. When I installed PocketSphinx the instructions said to create edu.cmu.pocketsphinx and subfolders under /sdcard/android/data on my device. And the language models and dics are present. App is working fine.

问题:我已经创建了apk文件并把它交给我的哥哥进行测试,它ch​​rashes识别启动时。我怀疑是正确的edu.cmu.pocketsphinx文件夹并没有在我哥哥的手机创建的。 我给他发了edu.cmu.pocketsphinx文件夹手动安装和它的作品。但不是最佳的下载摆弄这样的文件。

Problem: I have created the apk and sent it to my brother for testing and it chrashes when the recognition starts. I suspected rightly that the edu.cmu.pocketsphinx-folder had not been created on my brother's phone. I sent him the edu.cmu.pocketsphinx-folder to install manually and it works. But not optimal for a downloader to fiddle with files like that.

问题: 有没有为自动获取文件夹安装的方法吗? 事做一个构建路径? 一些包装,也许?

Questions: Is there a way to auto-get-folder-installed? Something to do with a build path? Some wrapping, perhaps?

如果你们有经验,出口pocketsphinxdemo到APK请你告诉我与它相关的挂羊头卖狗肉?

If any of you have experience with exporting pocketsphinxdemo to apk could you please tell me about the trickery associated with it?

希望这不是太模糊了。

我在迫切需要。

亲切的问候

推荐答案

这里有一个建议:

保存到res /生/文件。 当应用程序启动时检查,如果文件已经被保存到SD卡, 如果没有的话,从资源/原材料复制它们。

Save the files in res/raw/. When the app starts check if the files have been saved to the sdcard, if not then copy them from res/raw.

在SD卡,你可以使用一个目录名带有版本字符串包括, 这样,它会直接的更新。

In the sdcard, you could use a directory name with a version string included, that way it will be straight-forward to update.

这篇关于安卓PocketSphinx:语言模型的APK安装文件时不写入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆