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
    About the element14 Community
  • 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 687 subscribers
  • Views 3472 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
  • 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

    Hey Frederick,

     

    I'm trying to get voice command by Steven Hickson to work with the Wolfson audio card. It seems like i'm having similar issues to what you experienced with Jasper. I currently can play music just fine through the pi, just when I try to set up voice command i am not able to get audio to output. I changed the .asoundrc file on the pi thinking it may be a similar issue but am still not getting any audio. I was wondering if you had and ideas of how I might be able to troubleshoot this problem.

     

    Thanks,

    Ryan

    • 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 Ryan,

     

    as you read here, I was struggling a lot to get Jasper to run with Wolfson also.

     

    I think the best approach would be to create a new discussion and have others participate there, as this will create the best visibility on your problem.

    Also try to attach log files/screenshots/anything that seems useful to help troubleshoot the problem.

     

    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

    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