element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Wolfson audio card + Jasper ?
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 22 replies
  • Answers 2 answers
  • Subscribers 680 subscribers
  • Views 3281 views
  • Users 0 members are here
  • wolfson
  • jasper
  • audio
  • alsa
  • voice
  • raspberry_pi
  • raspberrypi
  • raspeberry_pi_accessories
Related

Wolfson audio card + Jasper ?

fvan
fvan over 11 years ago

Hi,

 

has anyone been able to get Jasper (Jasper | Control everything with your voice ) to work with the Wolfson audio card ?

 

I tried getting it to work with two different approaches and ended up with the same result (which is something good I suppose).

  • Took the Wolfson image and manually installed Jasper software
  • Took the Jasper image and manually installed Wolfson drivers/kernel

 

Jasper is working via the command line, but when trying to use voice control, I get some (Alsa related?) errors.

 

Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2762
Expression 'r' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2013
Expression 'PaAlsaStreamComponent_FinishConfigure( &self->capture, hwParamsCapture, inParams, self->primeBuffers, realSr, inputLatency )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2650

 

Full log attached.

 

Thanks!

Frederick

Attachments:
jasper_log.txt.zip
  • Sign in to reply
  • Cancel
Parents
  • willondubs
    0 willondubs over 11 years ago

    Hi Frederick,

    Jasper works fine with the Wolfson audio card using the .asoundrc found at the link below. It allows alsa to play/record in any rate format. I also removed the hw: references in boot.py and mic.py. The original error you got is due to the wolfson card throwing an error on the samplerate.

     

    Raspberry Pi and Karaoke Machine (Wolfson Pi Use and its Limitation)

     

    Here is where they admit the unintentional behavior:

    Re: PJSIP/PJSUA with Wolfson audio card

    Element14: "I can confirm your observation on the sample rate limitation. From our perspective it wasn’t the intention to limit the audio ADC and DAC sample rates to above 32k. At the moment we are investigating an update to the drivers which will allow full 8k to 192k support for the analogue inputs and outputs."

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • malakai
    0 malakai over 11 years ago in reply to willondubs

    I do believe I have it working but I cannot get sound to output. The example Wolfson gave had the sound connected to the SPKOUT and a 5v supply connected to the card. Is this the only way to get Jasper to play sound with Wolfson?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • willondubs
    0 willondubs over 11 years ago in reply to malakai

    Hi Todd,

    Getting Jasper to play requires that you can play a wav file using aplay with no arguments. Once that works, you want to remove the aplay hardware references(-D hw:x,x) in /boot/boot.py and /client/mic.py

     

    Try this file:

    aplay /home/pi/jasper/static/audio/jasper.wav

     

    My standard speakers work in the line out (green plug) and from the headphone out (black). Jasper works great with the onboard digital mics.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • willondubs
    0 willondubs over 11 years ago in reply to malakai

    Hi Todd,

    Getting Jasper to play requires that you can play a wav file using aplay with no arguments. Once that works, you want to remove the aplay hardware references(-D hw:x,x) in /boot/boot.py and /client/mic.py

     

    Try this file:

    aplay /home/pi/jasper/static/audio/jasper.wav

     

    My standard speakers work in the line out (green plug) and from the headphone out (black). Jasper works great with the onboard digital mics.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • malakai
    0 malakai over 11 years ago in reply to willondubs

    Thank you I think I am getting closer here's the error without the edits

     

     

    pi@raspberrypi ~ $ aplay /home/pi/jasper/static/audio/jasper.wav

    ALSA lib pcm_direct.c:1658:(snd1_pcm_direct_parse_open_conf) Unknown field the

    aplay: main:682: audio open error: Invalid argument

     

     

    OK it plays if I sudo

     

    aplay /home/pi/jasper/static/audio/jasper.wav 

     

    Is that typical?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • malakai
    0 malakai over 11 years ago in reply to malakai

    Thank you all.

     

    It's a hack but I just added sudo aplay to mic.py and boot.py image all is well in my world now.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • fvan
    0 fvan over 11 years ago in reply to malakai

    Jasper starts up, asks how he can be of service and such, but when I try to give it a command, nothing happens image

     

    Edit: ok, I get the beep beep when I say Jasper, and it replies image (had to increase input volume for DMIC)

    But my english must be so bad that it never answers correctly when I ask the time ...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • fvan
    0 fvan over 11 years ago in reply to fvan

    Ok, it just seems to have difficulties understanding me, but it works.

     

    If I repeat nice and slowly, it seems to work! Thanks everyone!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to fvan

    Frederick

     

    What did you do to get the Jasper + Wolfson working after you encountered all the error messages? I am encountering similar messages as to what you did, but am not having any luck resolving them. I'm getting the following:

     

    ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front

    ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear

    ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe

    ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side

    ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40

    ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41

    ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50

    ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51

    ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71

    ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958

    ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958

    ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958

    ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi

    ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi

    ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem

    ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem

    ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline

    ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline

    ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

     

     

    ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

     

     

    ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream

    ALSA lib pcm_dsnoop.c:551:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream

    ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream

     

     

     

     

    Drew

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to malakai

    For context to my previous post, I followed the RoadTestReview Todd put together. Todd, if you have any thoughts here they'd be appreciated as well.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • fvan
    0 fvan over 11 years ago in reply to Former Member

    Hi Drew,

     

    have you gone through all the feedback from Todd and Will in this thread ?
    One of the last things I fixed was this: http://www.element14.com/community/message/118485/l/re-re-wolfson-audio-card-jasper#118485

     

    Frederick

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to fvan

    I've been over this post many times, and many others image. I did install libasound2-plugins. The other thing I'm realizing is that when I play the jasper.wav sound using aplay I get the 'Playing WAVE '.../jasper.wav' : Signed 16 bit...' message, but it never terminates and I don't hear anything. I have to ctrl-c to get it to stop.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube