ROKID 前端语音快速集成指南

官方教程

(薯) #41

用这个链接: https://pan.baidu.com/s/1qYPn4oG 密码: 5ip7, 那个是Android5.0上才能用的


(zhaokai3000) #42

Hi,我现在ubuntu14.04, android7.1.2代码环境下,按照sdk tutorial下载了:
rokid-openvoice-sample-android
rokid-openvoice-sdk-deps-fastjson
rokid-openvoice-sdk-deps-poco
rokid-blacksiren
rokid-openvoice-sdk
rokid-openvoice-sdk-deps-grpc
rokid-openvoice-sdk-deps-protobuf

编译 rokid-openvoice-sdk-deps-poco, rokid-openvoice-sdk-deps-grpc, rokid-openvoice-sdk-deps-protobuf这几个依赖项和rokid-blacksiren都编译通过了,现在编译rokid-openvoice-sdk时遇到如下错误:
vendor/rokid/rokid-openvoice-sdk/demo/demo.cc:37:10: fatal error: ‘speech.pb.h’ file not found
#include “speech.pb.h”

请问是直接在rokid-openvoice-sdk目录下mm进行编译就可以了吗?还是要先进行其他的配置?


(薯) #43

稍等,我晚上下一套aosp7.1的看一下


rokid-openvoice-process-android-ndk 使用指南
(chao.xuc) #44

(chenyongbo1990) #45

请问如何登陆到开发板呢


(hec) #46

Building with Jack: out/target/common/obj/APPS/UserDictionaryProvider_intermediates/with-local/classes.dex
target arm C++: openvoice_proc <= openvoice/rokid-openvoice-process-android-pro/frameworks/native/services/openvoice_process/src/VoiceService.cpp
external/curl/lib/ssluse.c:96:24: fatal error: openssl/ui.h: No such file or directory
#include <openssl/ui.h>
^
compilation terminated.
build/core/binary.mk:801: recipe for target ‘out/target/product/avl7420/obj_arm/SHARED_LIBRARIES/libcurl_intermediates/lib/ssluse.o’ failed
make: *** [out/target/product/avl7420/obj_arm/SHARED_LIBRARIES/libcurl_intermediates/lib/ssluse.o] Error 1
make: *** Waiting for unfinished jobs…
In file included from openvoice/rokid-openvoice-process-android-pro/frameworks/native/services/openvoice_process/src/VoiceService.cpp:8:0:
openvoice/rokid-openvoice-process-android-pro/frameworks/native/services/openvoice_process/src/VoiceService.h:13:20: fatal error: speech.h: No such file or directory
#include “speech.h”
^
compilation terminated.
build/core/binary.mk:706: recipe for target ‘out/target/product/avl7420/obj_arm/EXECUTABLES/openvoice_proc_intermediates/src/VoiceService.o’ failed
make: *** [out/target/product/avl7420/obj_arm/EXECUTABLES/openvoice_proc_intermediates/src/VoiceService.o] Error 1

make failed to build some targets (02:07 (mm:ss))


(薯) #47

arm64目前还没有支持,支持了会通知大家


(hec) #48

能提供一个arm64的libopus.a库嘛


(薯) #49

libopus.a.zip (805.1 KB)


(hec) #50

谢谢老铁


(石权) #51

我这里是rokid的ALL in ONE,想做一个像官方app那样的Android手机端,有没有教程或者说明之类的


(薯) #52

手机版只能做近场(不能语音激活的),或者root权限的手机


(chenmanjia) #53


(yam.zhang) #54

这个已经不用了,集成起来比较麻烦,建议用这个,已经把所有依赖打包好了

git clone https://github.com/Rokid/rokid-openvoice-process-android-ndk.git -b deprecated

(hushihao) #55

有支持arm64的类库了吗


(hushihao) #56

04-13 10:19:16.195 E/openvoice_process( 5123): Unable to open PCM device 0 (cannot set hw params: Invalid argument)

在手机上调试的,请问这个有解决方案吗?


(yam.zhang) #57

暂时还没有哟 不好意思呢


(hushihao) #58

了解,多谢


(hushihao) #59

麻烦问个问题, 我想修改里面的类库的源码,但是编译一直错误 在android\rokid-openvoice-process-android-ndk/Android.mk中添加了include $(LOCAL_PATH)/jni/Android.mk

make: *** No rule to make target rokid-openvoice-process-android-ndk/jni/rokid-openvoice-process-android-ndk/jni/uWS/src/Epoll.cpp', needed byout/target/product/msm8909/obj/SHARED_LIBRARIES/libuWS_intermediates/rokid-openvoice-process-android-ndk/jni/uWS/src/Epoll.o’. Stop.

帮忙看看还需要怎么修改吗?多谢。


(yam.zhang) #60

jni文件夹下使用NDK编译,配置好NDK环境,运行rokid-openvoice-process-android-ndk/jni目录下的build命令即可