Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Roku3 roAudioResource issue

Hi

Having had issues in the past developing on Roku3 only to find Roku2 didn't like something I'd done - I thought I'd be clever and develop this new channel on Roku2!

Only to find that - while roku2 works perfectly - roku3 doesn't like roAudioResource use....

I play little wav "voice" clips files at various points - on roku2 fine - I have ensured the clips are tiny just a few seconds long.

On roku3 the same clips seem to get distorted - bits missed out of it so you get the start and end audio.

Also I can crash the app on roku3 just by using roAudioResource.

song = CreateObject("roAssociativeArray")
song.sound = CreateObject("roAudioResource", "pkg:/Voice/812.wav")
song.sound.Trigger(100)

HELP!
0 Kudos
7 REPLIES 7
RokuJoel
Binge Watcher

Re: Roku3 roAudioResource issue

What is the bit-depth of the .wav file you are using, and the sample-rate of the .wav?

- Joel
0 Kudos

Re: Roku3 roAudioResource issue

Hi - thanks for reply.

Not sure how to answer exactly what you ask as I have used one of the lowest settings in Adobe Premier Pro to create the files.

Looking at the files in Mediainfo gives:

Wave 77.6KiB 2s 484ms
1 audio stream PCM (Microsfoft)
Audio 256 Kbps 16.0Khz 1 channel PCM (Microsoft)

How can I find what you need to know?
0 Kudos
RokuJoel
Binge Watcher

Re: Roku3 roAudioResource issue

Itunes or Quicktime for mac or windows should be able to tell you the bit depth and bit rate, or Audacity.

- Joel
0 Kudos

Re: Roku3 roAudioResource issue

Thanks.

I resolved the issue.

Roku 3 doesn't like audioresource files that aren't 48khz.

Kevin
0 Kudos
Komag
Roku Guru

Re: Roku3 roAudioResource issue

I thought they needed to be 44khz?
0 Kudos

Re: Roku3 roAudioResource issue

Sorry - yes 44.

But only on Roku3, roku2 doesn't seem to be concerned with them.

Roku3 seems to skip or play too fast if not 44khz

But I haven't seen anywhere that is documented?

The sample wavs issued with the sample source code are 22khz
0 Kudos
renojim
Community Streaming Expert

Re: Roku3 roAudioResource issue

I think I'm seeing (hearing) an issue with 8kHz 16-bit sample files that used to work. Now they seem to sometimes be chopped off.

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos