gpt4 book ai didi

android - 用于在 Genymotion 上播放音频的 adb shell 命令

转载 作者:行者123 更新时间:2023-11-29 01:11:35 25 4
gpt4 key购买 nike

我想使用 adb 命令自动运行一个应用程序。我知道如何发送命令,例如 swiptouch 等。如何播放音频文件以模拟语音?

我有测试,但没有一个有效。

>adb shell tinyplay bird.wav
Unable to open file 'bird.wav'

>adb shell stagefright -a -o bird.wav 
Unable to create data source.

我将 Genymotion 用作 android 设备。

最佳答案

您可以使用提供的文件位置开始 Activity 。

试试这个-

adb shell am start -a android.intent.action.VIEW -d file:///storage/sdcard0/sample.mp3 -t audio/mp3

关于android - 用于在 Genymotion 上播放音频的 adb shell 命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42635693/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com