# PiCroft issue with pairing

**URL:** https://community.openconversational.ai/t/picroft-issue-with-pairing/2386
**Category:** Picroft
**Created:** [November 10, 2017, 8:20pm UTC](https://community.openconversational.ai/t/picroft-issue-with-pairing/2386 "2017-11-10T20:20:51Z")
**Posts on this page:** 10
**Page:** 2

<div class="post-metadata">

### Author: ![tjoen](https://community.openconversational.ai/user_avatar/community.openconversational.ai/tjoen/32/871_2.png) [@tjoen](https://community.openconversational.ai/u/tjoen)
#### Post date: [December 19, 2017, 2:48pm UTC](https://community.openconversational.ai/t/picroft-issue-with-pairing/2386/21 "2017-12-19T14:48:50Z")

</div>

Ah, then you should probably edit /etc/mycroft/mycroft.conf like this.  
or copy this in .mycroft/mycroft.conf

(just get rid of the -Dhw:0,0 in aplay!)

{  
“play\_wav\_cmdline”: “aplay %1”,  
“enclosure”: {  
“platform”: “picroft”,  
“update”: true,  
“test”: false  
},  
“play\_wav\_cmdline”: “aplay %1”,  
“play\_mp3\_cmdline”: “mpg123 %1”,  
“tts”: {  
“module”: “mimic”,  
“mimic”: {  
“voice”: “ap”,  
“path”: “/usr/local/bin/mimic”  
}  
}  
}

---

<div class="post-metadata">

### Author: ![aleale99](https://community.openconversational.ai/user_avatar/community.openconversational.ai/aleale99/32/891_2.png) [@aleale99](https://community.openconversational.ai/u/aleale99)
#### Post date: [December 19, 2017, 4:05pm UTC](https://community.openconversational.ai/t/picroft-issue-with-pairing/2386/22 "2017-12-19T16:05:40Z")

</div>

ok tjoen!

with the correct /etc/mycroft/mycroft.conf

the errors at startup are gone!

> dditional commands you can use from the command line:  
> mycroft-cli-client - command line client, useful for debugging  
> msm - Mycroft Skills Manager, install new Skills from Github  
> say\_to\_mycroft - one-shot commands from the command line  
> speak - say something to the user  
> test\_microphone - record and playback to test your microphone
> 
> * * *
> 
> 16:52:40.620 - mycroft.configuration.config:load\_local:110 - DEBUG - Configuration /usr/local/lib/python2.7/site-packages/mycroft\_core-0.9.10-py2.7.egg/mycroft/configuration/mycroft.conf loaded  
> 16:52:40.634 - mycroft.configuration.config:load\_local:110 - DEBUG - Configuration /usr/local/lib/python2.7/site-packages/mycroft\_core-0.9.10-py2.7.egg/mycroft/configuration/mycroft.conf loaded  
> 16:52:40.639 - mycroft.configuration.config:load\_local:110 - DEBUG - Configuration /etc/mycroft/mycroft.conf loaded  
> 16:52:40.655 - mycroft.configuration.config:load\_local:110 - DEBUG - Configuration /home/mycroft/.mycroft/mycroft.conf loaded  
> 16:52:40.674 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): api.mycroft.ai  
> 16:52:41.548 - requests.packages.urllib3.connectionpool - DEBUG - [https://api.mycroft.ai:443](https://api.mycroft.ai:443) “GET /v1/device/ef5da3d9-297f-46ec-bf3f-0359438b47d5/setting HTTP/1.1” 200 4  
> 16:52:41.562 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): api.mycroft.ai

$ test\_microphone give the same error

> 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:961:(snd\_pcm\_dmix\_open) The dmix plugin supports only playback stream  
> ALSA lib pcm\_dsnoop.c:557:(snd\_pcm\_dsnoop\_open) The dsnoop plugin supports only capture stream

BUT NOW I can hear my voice!

and if i use

> arecord -c2 -r 48000 -f S32\_LE -t wav -V stereo -v file\_stereo.wav

i can see a strong signal on vumeters

---

<div class="post-metadata">

### Author: ![aleale99](https://community.openconversational.ai/user_avatar/community.openconversational.ai/aleale99/32/891_2.png) [@aleale99](https://community.openconversational.ai/u/aleale99)
#### Post date: [December 19, 2017, 5:40pm UTC](https://community.openconversational.ai/t/picroft-issue-with-pairing/2386/23 "2017-12-19T17:40:26Z")

</div>

> [@tjoen](#):
>
> Sorting out some problem with the wifi setup in the new 0.9.10 version.
> 
> But it should be online tonight or tomorrow hopefully.

take the time you need, I’ll wait patiently

I’m not sure of all the changes I’ve made, so maybe it’s better to start from something working and stable

thank you  
Ale

---

<div class="post-metadata">

### Author: ![Ryan\_Miller](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/r/8491ac/32.png) [@Ryan\_Miller](https://community.openconversational.ai/u/Ryan_Miller)
#### Post date: [December 21, 2017, 12:41am UTC](https://community.openconversational.ai/t/picroft-issue-with-pairing/2386/24 "2017-12-21T00:41:38Z")

</div>

That did it! Working great now for a full day! Only trouble I seem to be having at the moment is getting the output volume to change. Even when Mycroft tells me that volume is at zero, it’s still blasting away out the AIY speaker. Any attempts to set volume with amixer at the command line also seem fruitless. Any tips for checking if the volume skill is functioning properly?

---

<div class="post-metadata">

### Author: ![tjoen](https://community.openconversational.ai/user_avatar/community.openconversational.ai/tjoen/32/871_2.png) [@tjoen](https://community.openconversational.ai/u/tjoen)
#### Post date: [December 21, 2017, 3:58pm UTC](https://community.openconversational.ai/t/picroft-issue-with-pairing/2386/25 "2017-12-21T15:58:59Z")

</div>

Still testing the new wifi setup I’m afraid. Hope to get it online before christmas…

Tjoen

---

<div class="post-metadata">

### Author: ![tjoen](https://community.openconversational.ai/user_avatar/community.openconversational.ai/tjoen/32/871_2.png) [@tjoen](https://community.openconversational.ai/u/tjoen)
#### Post date: [December 21, 2017, 4:05pm UTC](https://community.openconversational.ai/t/picroft-issue-with-pairing/2386/26 "2017-12-21T16:05:18Z")

</div>

Hmmm, I am now able to set the volume with command “raise volume” and “lower volume”.  
I did have to change the pulseaudio config for that I think…?

This is my setup:

**/home/pi/auto\_run.sh:**

```
sudo amixer cset numid=3 "0" # audio out the analog speaker/headphone jack
amixer set Master 50% # set volume to a reasonable level

```

**/etc/asound.conf:**

```
options snd_rpi_googlevoicehat_soundcard index=0

pcm.softvol {
    type softvol
    slave.pcm dmix
    control {
        name Master
        card 0
    }
}

pcm.micboost {
    type route
    slave.pcm dsnoop
    ttable {
        0.0 10.0
        1.1 10.0
    }
}

pcm.!default {
    type asym
    playback.pcm "plug:softvol"
    capture.pcm "plug:micboost"
}

ctl.!default {
    type hw
    card 0
}

```

**/etc/pulse/default.pa** :  
#uncomment and change module-alsa-sink and module-alsa-source:  
load-module module-alsa-sink device=hw:0  
load-module module-alsa-source device=hw:0,0

---

<div class="post-metadata">

### Author: ![tjoen](https://community.openconversational.ai/user_avatar/community.openconversational.ai/tjoen/32/871_2.png) [@tjoen](https://community.openconversational.ai/u/tjoen)
#### Post date: [December 24, 2017, 8:52pm UTC](https://community.openconversational.ai/t/picroft-issue-with-pairing/2386/27 "2017-12-24T20:52:23Z")

</div>

[here it is](https://community.openconversational.ai/t/mycroft-with-google-aiy-voice-kit-disk-image/2607)

---

<div class="post-metadata">

### Author: ![calebio](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/c/f4b2a3/32.png) [@calebio](https://community.openconversational.ai/u/calebio)
#### Post date: [June 10, 2018, 8:58pm UTC](https://community.openconversational.ai/t/picroft-issue-with-pairing/2386/29 "2018-06-10T20:58:26Z")

</div>

Are you all using the AIY image, or the Picroft image? I’ve been trying to follow the info here, using the Pycroft image, but without luck so far. The `configure-driver.sh` script isn’t available unless you `git checkout voicekit` on the AIY repo (as mentioned here: [https://github.com/google/aiyprojects-raspbian/issues/378#issuecomment-390433370](https://github.com/google/aiyprojects-raspbian/issues/378#issuecomment-390433370) ).

---

<div class="post-metadata">

### Author: ![calebio](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/c/f4b2a3/32.png) [@calebio](https://community.openconversational.ai/u/calebio)
#### Post date: [June 17, 2018, 5:36pm UTC](https://community.openconversational.ai/t/picroft-issue-with-pairing/2386/30 "2018-06-17T17:36:18Z")

</div>

I’ve sorted it out. I’m now able to make a new disk image compatible with the Google AIY Kit, from the stock `raspbian_Picroft_2018-03-14` image, based on info I gathered from this thread. I am not, however, installing the whole `aiyprojects-raspbian` toolchain, since that seems to add a lot of setup time and unneeded packages. My setup steps are in a gist here: [https://gist.github.com/clebio/5c0d5af3fbd800e9ecf500ccbed096ac](https://gist.github.com/clebio/5c0d5af3fbd800e9ecf500ccbed096ac)

---

<div class="post-metadata">

### Author: ![KathyReid](https://community.openconversational.ai/user_avatar/community.openconversational.ai/kathyreid/32/1949_2.png) [@KathyReid](https://community.openconversational.ai/u/KathyReid)
#### Post date: [June 18, 2018, 10:34am UTC](https://community.openconversational.ai/t/picroft-issue-with-pairing/2386/31 "2018-06-18T10:34:21Z")

</div>

Nice work, @calebio!

[Previous page](https://community.openconversational.ai/t/picroft-issue-with-pairing/2386.md?page=1)
