# Pass in audio and get output?

**URL:** https://community.openconversational.ai/t/pass-in-audio-and-get-output/13500
**Category:** Modding
**Created:** [April 2, 2023, 7:23pm UTC](https://community.openconversational.ai/t/pass-in-audio-and-get-output/13500 "2023-04-02T19:23:32Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![nshiell](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/n/ecae2f/32.png) [@nshiell](https://community.openconversational.ai/u/nshiell)
#### Post date: [April 2, 2023, 7:23pm UTC](https://community.openconversational.ai/t/pass-in-audio-and-get-output/13500/1 "2023-04-02T19:23:33Z")

</div>

Is it possible to run a MyCroft instance and pass it an audio recording and return the output audio?

So the input would be a recording of my voice saying “What’s the time” as an .mp3 or .wav etc  
And the output would be a MyCroft audio recording saying “Currently eight twenty one”

(This would not need to use the wake word)

---

<div class="post-metadata">

### Author: ![baconator](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/b/d07c76/32.png) [@baconator](https://community.openconversational.ai/u/baconator)
#### Post date: [April 2, 2023, 10:53pm UTC](https://community.openconversational.ai/t/pass-in-audio-and-get-output/13500/2 "2023-04-02T22:53:49Z")

</div>

This is what happens now, but you are hidden from the workings. Explore the code, and then tweak away.

---

<div class="post-metadata">

### Author: ![nshiell](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/n/ecae2f/32.png) [@nshiell](https://community.openconversational.ai/u/nshiell)
#### Post date: [April 3, 2023, 12:48pm UTC](https://community.openconversational.ai/t/pass-in-audio-and-get-output/13500/3 "2023-04-03T12:48:00Z")

</div>

Ummmmm @baconator any pointers?

---

<div class="post-metadata">

### Author: ![baconator](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/b/d07c76/32.png) [@baconator](https://community.openconversational.ai/u/baconator)
#### Post date: [April 3, 2023, 10:37pm UTC](https://community.openconversational.ai/t/pass-in-audio-and-get-output/13500/4 "2023-04-03T22:37:20Z")

</div>

really depends on your level of familiarity with python?

---

<div class="post-metadata">

### Author: ![nshiell](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/n/ecae2f/32.png) [@nshiell](https://community.openconversational.ai/u/nshiell)
#### Post date: [April 4, 2023, 12:56pm UTC](https://community.openconversational.ai/t/pass-in-audio-and-get-output/13500/5 "2023-04-04T12:56:42Z")

</div>

Well yes I know Python  
Would I need to enter the virtual environment and inject a wav into the file system and trigger a message?  
Would I need to hack mycroft-core?

---

<div class="post-metadata">

### Author: ![baconator](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/b/d07c76/32.png) [@baconator](https://community.openconversational.ai/u/baconator)
#### Post date: [April 4, 2023, 9:14pm UTC](https://community.openconversational.ai/t/pass-in-audio-and-get-output/13500/6 "2023-04-04T21:14:40Z")

</div>

If you want to pass mycroft a command, you can do that over the message bus, see docs site for more.  
If you want to pass mycroft an audio file, you can look into [mycroft-core/listener.py at dev · MycroftAI/mycroft-core · GitHub](https://github.com/MycroftAI/mycroft-core/blob/dev/mycroft/client/speech/listener.py) and derive where you’d do so from that.  
If you want to use the stt classes to get the text from speech for whatever other reason, see #2.
