NewbyDeveloper
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2015
12:00 PM
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!
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!
7 REPLIES 7

RokuJoel
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2015
12:59 PM
Re: Roku3 roAudioResource issue
What is the bit-depth of the .wav file you are using, and the sample-rate of the .wav?
- Joel
- Joel
NewbyDeveloper
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2015
02:32 PM
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?
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?

RokuJoel
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2015
03:47 PM
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
- Joel
NewbyDeveloper
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2015
01:33 PM
Re: Roku3 roAudioResource issue
Thanks.
I resolved the issue.
Roku 3 doesn't like audioresource files that aren't 48khz.
Kevin
I resolved the issue.
Roku 3 doesn't like audioresource files that aren't 48khz.
Kevin

Komag
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2015
02:20 PM
Re: Roku3 roAudioResource issue
I thought they needed to be 44khz?
NewbyDeveloper
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2015
03:51 PM
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
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
renojim
Community Streaming Expert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2015
10:21 PM
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
-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.
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.