建议使用以下浏览器,以获得最佳体验。 ie 9.0 以上版本 chrome 31 谷歌浏览器 firefox 30 火狐浏览器
温馨提示

抱歉,您需设置社区昵称后才能参与社区互动!

前往修改
我再想想
选择版块
hilens 主题:736帖子:2959

问题处理中

【问题求助】

播放acc音频报错

4 天前 317
问题:
---------------------------------------------------------------------------
在hilens studio中测试输出音频,显示错误
将技能安装到hilens中亦没有任何输出
注1:hilens固件版本:1.3.3;
注2:附件中包括acc音频文件


源代码如下:
-------------------------------------------------------------------------

#! /usr/bin/python3.7

import os
import hilens
# import wave

def run(work_path):
    # 系统初始化,参数要与创建技能时填写的检验值保持一致
    hilens.init("hello")

    audio_out = hilens.audiooutput()
    audio_out.play_aac_file(os.path.join(work_path, 'rain.acc'), 3)

    hilens.terminate()


if __name__ == "__main__":
    run(os.getcwd())

错误提示:
-------------------------------------------------------------------------
cd /home/huser/projects/hello_world_python_haq
python3 /home/huser/projects/hello_world_python_haq/start.py
[huser@studio-ide-679f67bb45-866xw ~]$ cd /home/huser/projects/hello_world_python_haq
[huser@studio-ide-679f67bb45-866xw hello_world_python_haq]$ python3 /home/huser/projects/hello_world_python_haq/start.py
[sfw]2022-06-18 06:30:27.596[info](11414-device_checker.cpp:71)----- start detectdevice ------
[device]2022-06-18 06:30:27.618[info](11414-acl_mediaplugin.cpp:19)-----------load acl_c75 media---------
[device]2022-06-18 06:30:27.871[info](11414-acl_inferplugin.cpp:26)-----------load acl_c75 infer---------
[huser@studio-ide-679f67bb45-866xw hello_world_python_haq]$ cd /home/huser/projects/hello_world_python_haq
[huser@studio-ide-679f67bb45-866xw hello_world_python_haq]$ python3 /home/huser/projects/hello_world_python_haq/start.py
[sfw]2022-06-18 06:30:35.051[info](11501-device_checker.cpp:71)----- start detectdevice ------
[device]2022-06-18 06:30:35.073[info](11501-acl_mediaplugin.cpp:19)-----------load acl_c75 media---------
[device]2022-06-18 06:30:35.326[info](11501-acl_inferplugin.cpp:26)-----------load acl_c75 infer---------
segmentation fault (core dumped)
[huser@studio-ide-679f67bb45-866xw hello_world_python_haq]$ 

麻烦帮忙看下如何解决,谢谢!



截图如下:
-----------------------------------------------------------------------

    131.86 kb,下载次数:2

回复5

0 0
2022/6/18 15:51

这个不会,帮顶一下~

0 0
2022/6/18 21:47
回复:黄生 发表于 2022-6-18 15:51 这个不会,帮顶一下~

感谢!

0 0
2022/6/19 21:34

hilens studio中没有相关驱动,所以无法使用音频模块。 安装到hilens kit上,正常来说接上耳机或者音响可以听到声音,如果没有声音看下日志中有什么报错。

0 0
2022/6/22 00:08
回复:hilens粉 发表于 2022-6-19 21:34 hilens studio中没有相关驱动,所以无法使用音频模块。 安装到hilens kit上,正常来说接上耳机或者音响可以听到声音,如果没有声音看下日志中有什
0 0
2022/6/22 00:09
回复:hilens粉 发表于 2022-6-19 21:34 hilens studio中没有相关驱动,所以无法使用音频模块。 安装到hilens kit上,正常来说接上耳机或者音响可以听到声音,如果没有声音看下日志中有什

查了日志,和studio中报错一样。麻烦您指导一下有无解决方式,谢谢!

上划加载中
直达楼层
我的回复
正序浏览
标签
您还可以添加5个标签
  • 没有搜索到和“关键字”相关的标签
  • 云产品
  • 亚博平台下载的解决方案
  • 技术领域
  • 通用技术
  • 平台功能
取消

播放acc音频报错-yb体育官方

您已采纳当前回复为最佳回复

mrhan36

发帖: 5粉丝: 0

[问题求助] 播放acc音频报错
问题:
---------------------------------------------------------------------------
在hilens studio中测试输出音频,显示错误
将技能安装到hilens中亦没有任何输出
注1:hilens固件版本:1.3.3;
注2:附件中包括acc音频文件


源代码如下:
-------------------------------------------------------------------------

#! /usr/bin/python3.7

import os
import hilens
# import wave

def run(work_path):
    # 系统初始化,参数要与创建技能时填写的检验值保持一致
    hilens.init("hello")

    audio_out = hilens.audiooutput()
    audio_out.play_aac_file(os.path.join(work_path, 'rain.acc'), 3)

    hilens.terminate()


if __name__ == "__main__":
    run(os.getcwd())

错误提示:
-------------------------------------------------------------------------
cd /home/huser/projects/hello_world_python_haq
python3 /home/huser/projects/hello_world_python_haq/start.py
[huser@studio-ide-679f67bb45-866xw ~]$ cd /home/huser/projects/hello_world_python_haq
[huser@studio-ide-679f67bb45-866xw hello_world_python_haq]$ python3 /home/huser/projects/hello_world_python_haq/start.py
[sfw]2022-06-18 06:30:27.596[info](11414-device_checker.cpp:71)----- start detectdevice ------
[device]2022-06-18 06:30:27.618[info](11414-acl_mediaplugin.cpp:19)-----------load acl_c75 media---------
[device]2022-06-18 06:30:27.871[info](11414-acl_inferplugin.cpp:26)-----------load acl_c75 infer---------
[huser@studio-ide-679f67bb45-866xw hello_world_python_haq]$ cd /home/huser/projects/hello_world_python_haq
[huser@studio-ide-679f67bb45-866xw hello_world_python_haq]$ python3 /home/huser/projects/hello_world_python_haq/start.py
[sfw]2022-06-18 06:30:35.051[info](11501-device_checker.cpp:71)----- start detectdevice ------
[device]2022-06-18 06:30:35.073[info](11501-acl_mediaplugin.cpp:19)-----------load acl_c75 media---------
[device]2022-06-18 06:30:35.326[info](11501-acl_inferplugin.cpp:26)-----------load acl_c75 infer---------
segmentation fault (core dumped)
[huser@studio-ide-679f67bb45-866xw hello_world_python_haq]$ 

麻烦帮忙看下如何解决,谢谢!



截图如下:
-----------------------------------------------------------------------

131.86 kb,下载次数:2

分享文章到朋友圈

分享文章到微博
您已采纳当前回复为最佳回复

黄生

发帖: 481粉丝: 12

发表于2022年06月18日 15:51:44
直达本楼层的链接
沙发
显示全部楼层

这个不会,帮顶一下~

您已采纳当前回复为最佳回复

mrhan36

发帖: 5粉丝: 0

发表于2022年06月18日 21:47:48 显示全部楼层
回复:黄生 发表于 2022-6-18 15:51 这个不会,帮顶一下~

感谢!

您已采纳当前回复为最佳回复

hilens粉

发帖: 5粉丝: 3

发表于2022年06月19日 21:34:07
直达本楼层的链接
地板
显示全部楼层

hilens studio中没有相关驱动,所以无法使用音频模块。 安装到hilens kit上,正常来说接上耳机或者音响可以听到声音,如果没有声音看下日志中有什么报错。

您已采纳当前回复为最佳回复

mrhan36

发帖: 5粉丝: 0

发表于2022年06月22日 00:08:10
直达本楼层的链接
5#
显示全部楼层
回复:hilens粉 发表于 2022-6-19 21:34 hilens studio中没有相关驱动,所以无法使用音频模块。 安装到hilens kit上,正常来说接上耳机或者音响可以听到声音,如果没有声音看下日志中有什
您已采纳当前回复为最佳回复

mrhan36

发帖: 5粉丝: 0

发表于2022年06月22日 00:09:46
直达本楼层的链接
6#
显示全部楼层
回复:hilens粉 发表于 2022-6-19 21:34 hilens studio中没有相关驱动,所以无法使用音频模块。 安装到hilens kit上,正常来说接上耳机或者音响可以听到声音,如果没有声音看下日志中有什

查了日志,和studio中报错一样。麻烦您指导一下有无解决方式,谢谢!

您需要登录后才可以回帖 | 立即注册

邀请回答
您可以邀请3位专家
您对问题的回复是否满意?
满意度
非常满意 满意 一般 不满意
我要反馈
0/200
网站地图