# Trying to find where audio inputs and outputs are processed so i can make mycroft into a discord bot

**URL:** https://community.openconversational.ai/t/trying-to-find-where-audio-inputs-and-outputs-are-processed-so-i-can-make-mycroft-into-a-discord-bot/5117
**Category:** Modding
**Created:** [November 16, 2018, 6:45am UTC](https://community.openconversational.ai/t/trying-to-find-where-audio-inputs-and-outputs-are-processed-so-i-can-make-mycroft-into-a-discord-bot/5117 "2018-11-16T06:45:29Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![folander](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/f/c0e974/32.png) [@folander](https://community.openconversational.ai/u/folander)
#### Post date: [November 16, 2018, 6:45am UTC](https://community.openconversational.ai/t/trying-to-find-where-audio-inputs-and-outputs-are-processed-so-i-can-make-mycroft-into-a-discord-bot/5117/1 "2018-11-16T06:45:29Z")

</div>

I’m trying to do something stupid and make Mycroft discord compatible. Essentially what i want to do is make it use the discord API as I/O instead of a speaker/ microphone. But i don’t know where to look to find where this code is processed. Does anyone have any idea where to start?

I’ve never really done something like this before and i know im biting off more than i can chew but that honestly makes it kinda exciting for me. my plan is to use discord’s bot API but in the future i might expand the scope of the project so that it’s easier for other people to use. who knows maybe i’ll even make some skills for discord server moderation or something.

---

<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: [November 16, 2018, 10:48am UTC](https://community.openconversational.ai/t/trying-to-find-where-audio-inputs-and-outputs-are-processed-so-i-can-make-mycroft-into-a-discord-bot/5117/2 "2018-11-16T10:48:55Z")

</div>

Hi there @folander, first of all a warm welcome!

Start here for the `listener` functions;

> <https://github.com/MycroftAI/mycroft-core/blob/master/mycroft/client/speech/listener.py>

and start here for the `microphone` functions;

> <https://github.com/MycroftAI/mycroft-core/blob/master/mycroft/client/speech/mic.py>

and here for the text to speech functionality - ie playback;

> <https://github.com/MycroftAI/mycroft-core/blob/master/mycroft/client/text/text_client.py>

(I’ve made an assumption that you’re fairly technical, let us know if you’d like me to start at a different point)

Best, Kathy
