ankitha444 发表于 2021-5-31 15:30:47

CSR8670

I am new to CSR8670 and i wanted to play a specific .wav file from memory in csr8670. Can anybody have any idea how this is done. Thanks in advance.

522315697 发表于 2021-6-1 22:13:27

只是播放一个特定提示音的文件而已,用语音提示就可以实现了。

ankitha444 发表于 2021-6-2 12:53:06

骑着蟑螂去上学 发表于 2021-6-1 22:13
只是播放一个特定提示音的文件而已,用语音提示就可以实现了。

Thanks for the response. Actually voice prompt is available in sink application only right. The ultimate requirement i need was to play a specific file through a2dp. I am using source application to send audio through a2dp and there is no audio prompt in source application.
From connectStream documentation i found we can read from file using streamfilesource. But how the file is to be processed? How it needs to be connected to a sink ( for eg : Stereo out) .

394645065 发表于 2021-6-2 15:20:52

can you speak chinese

ankitha444 发表于 2021-6-3 12:25:19

394645065 发表于 2021-6-2 15:20
can you speak chinese

I am sorry i dont know chinese. You can use browser to translate right? .

terrysmt1984 发表于 2021-6-4 09:32:55

I know what you want to do, but as we know, the source application can only encode the audio, and send it to the sink devices which can decoder it, so if you want to play the .wav file, i suggest you get this files from like SD card, and connect the source's aux L and aux R to the sd card output, so you can send the .wav file you want.

ankitha444 发表于 2021-6-5 21:43:11

terrysmt1984 发表于 2021-6-4 09:32
I know what you want to do, but as we know, the source application can only encode the audio, and se ...

My requirement was to render a file similar to audio prompt working in sink app. So i converted .wav to .prm and .idx file and stored it to internal flash by copying it in image folder of application just like sink audio prompt works. I was able to read the file in VM using streamfilesource() but when i connect it to sink(stereo), no audio comes also no error or panic.

深圳市 发表于 2023-11-27 13:42:18

学习
页: [1]
查看完整版本: CSR8670