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 3475 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
  • Former Member
    0 Former Member over 10 years ago

    Has anyone got this working with the cirrus logic audio card and a raspberry pi 2? I am trying to use spkout speakers and the DCIM microphones with Jasper.

     

    I manually installed Jasper ontop of the cirrus audio card image as per the instructions from Jaspers website. The image was working fine before the install of Jasper.

     

    I have replaced the asoundrc file with the one built by ragnar.jensen in this post http://www.element14.com/community/roadTestReviews/1810. However I am pretty sure this is meant for the original woflson audio card and the raspberry pi b.

     

    When running jasper I get the welcome audio message played out through the raspberry pi headphone jack and then it fails with this error:

     

    No handlers could be found for logger "cmuclmtk"

    *******************************************************

    *             JASPER - THE TALKING COMPUTER           *

    * (c) 2015 Shubhro Saha, Charlie Marsh & Jan Holthuis *

    *******************************************************

    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_dsnoop.c:612:(snd_pcm_dsnoop_open) unable to open slave

    ALSA lib pcm_direct.c:877:(snd1_pcm_direct_initialize_slave) slave plugin does not support mmap interleaved or mmap noninterleaved access

    ALSA lib pcm_dmix.c:1030:(snd_pcm_dmix_open) unable to initialize slave

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

    ALSA lib pcm_direct.c:877:(snd1_pcm_direct_initialize_slave) slave plugin does not support mmap interleaved or mmap noninterleaved access

    ALSA lib pcm_dmix.c:1030:(snd_pcm_dmix_open) unable to initialize slave

    ALSA lib pcm_dsnoop.c:612:(snd_pcm_dsnoop_open) unable to open slave

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

    ALSA lib pcm_dsnoop.c:612:(snd_pcm_dsnoop_open) unable to open slave

    ALSA lib pcm_direct.c:877:(snd1_pcm_direct_initialize_slave) slave plugin does not support mmap interleaved or mmap noninterleaved access

    ALSA lib pcm_dmix.c:1030:(snd_pcm_dmix_open) unable to initialize slave

    ALSA lib pcm_dsnoop.c:612:(snd_pcm_dsnoop_open) unable to open slave

    ALSA lib pcm_direct.c:877:(snd1_pcm_direct_initialize_slave) slave plugin does not support mmap interleaved or mmap noninterleaved access

    ALSA lib pcm_dmix.c:1030:(snd_pcm_dmix_open) unable to initialize slave

    ALSA lib pcm_dsnoop.c:612:(snd_pcm_dsnoop_open) unable to open slave

    ALSA lib pcm_direct.c:877:(snd1_pcm_direct_initialize_slave) slave plugin does not support mmap interleaved or mmap noninterleaved access

    ALSA lib pcm_dmix.c:1030:(snd_pcm_dmix_open) unable to initialize slave

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

    ALSA lib pcm_direct.c:877:(snd1_pcm_direct_initialize_slave) slave plugin does not support mmap interleaved or mmap noninterleaved access

    ALSA lib pcm_dmix.c:1030:(snd_pcm_dmix_open) unable to initialize slave

    ALSA lib pcm_dsnoop.c:612:(snd_pcm_dsnoop_open) unable to open slave

    ALSA lib pcm_direct.c:877:(snd1_pcm_direct_initialize_slave) slave plugin does not support mmap interleaved or mmap noninterleaved access

    ALSA lib pcm_dmix.c:1030:(snd_pcm_dmix_open) unable to initialize slave

    Cannot connect to server socket err = No such file or directory

    Cannot connect to server request channel

    jack server is not running or cannot be started

    Traceback (most recent call last):

      File "/home/pi/jasper/jasper.py", line 148, in <module>

        app.run()

      File "/home/pi/jasper/jasper.py", line 118, in run

        conversation.handleForever()

      File "/home/pi/jasper/client/conversation.py", line 31, in handleForever

        threshold, transcribed = self.mic.passiveListen(self.persona)

      File "/home/pi/jasper/client/mic.py", line 110, in passiveListen

        frames_per_buffer=CHUNK)

      File "/usr/lib/pymodules/python2.7/pyaudio.py", line 714, in open

        stream = Stream(self, *args, **kwargs)

      File "/usr/lib/pymodules/python2.7/pyaudio.py", line 396, in __init__

        self._stream = pa.open(**arguments)

    IOError: [Errno Invalid input device (no default output device)] -9996

     

    Note I can now not get the cirrus audio card to record or play files I get an error for this as well.

     

    Any thoughts / comments / help would be hugely appreciated.

     

    Tom

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • bantammenace
    0 bantammenace over 10 years ago

    I've successfully used a Wolfson Audio Card with Gerrelt's (Truehl) Squeezeplug Logitech Media Server on a RPi B since it was first included in the Squeezeplug image.

    Recently and primarily using Ragnar's (excellent) instructions for setting up the WAC I have the Subsonic open-source web-based media streamer and jukebox working on another RPi B with a WAC.

    Now I am trying to get a RPI B to work with the WAC and Jasper. Unfortunately after many, many, many hours of trying and many fresh attempts I just cannot get it to install/run successfully. I suspect that not all the links in the instructions are pointing to where they should be.

    I would really appreciate it if someone could provide a working image that I could download. I just love the idea of using the on board microphones to pause/mute my music and I want top try and avoid having to go down the external USB mic route

    I will also post this on the Jasper forum and the Raspberry Pi  forum and will let all three forums if anyone is kind enough to provide a copy of their fully working image. Before anyone does I would probably recommend that they run populate.py again and enter through all the stages without entering their personal details.

    Certainly it would help CFC Farnell to sell their remaining stock of WACs which otherwise I would imagine would be languishing on the shelves of a warehouse somewhere until the decision was taken to send them to the tip,

    Today they are showing as having 2680 in stock which at the current price of £16.50 UK pounds is £44,220 UK pounds. Perhaps CPC Farnell could pay Ragnar something to create an image ?

    Thanks for reading,

    Thanks in advance

    Kind regards

    • 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