Default sample rate of MIC

Moderator: flatmax

Post Reply
posidon
Posts: 1
Joined: Sat Aug 04, 2018 12:40 am

Default sample rate of MIC

Post by posidon » Sat Aug 04, 2018 12:55 am

Hi,

i'm using a google assistant tutorial and have a problem at the end when running,

Im on a raspberry pi 2 B running updated/upgraded :-
Linux raspberrypi 4.14.58-v7+ #1130 SMP Thu Jul 26 14:30:50 BST 2018 armv7l GNU/Linux

I get an error that implies the sample rate is invalid.
With Pyaudio there seems to be a way to change the sample rate default (changing value in a conf file) it needs to be 16000 for the google assistant.

Where and how do I change the default MIC sample rate for the Audio Injector Stereo board?

The last line of the error is :
sounddevice.PortAudioError: Error opening RawStream: Invalid sample rate [PaErrorCode -9997]

The link I'm using to build is this :-
https://www.hackster.io/Salmanfarisvp/g ... -pi-9f3677

I get no issues with the process.

thanks

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests