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 3500 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
  • 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
Reply
  • 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
Children
No Data
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