# Want to use fmod to play music over Discord voice chat. How can I accomplish this?

**URL:** <https://qa.fmod.com/t/want-to-use-fmod-to-play-music-over-discord-voice-chat-how-can-i-accomplish-this/21429>\
**Category:** FMOD Studio\
**Created:** [March 30, 2024, 5:04pm UTC](https://qa.fmod.com/t/want-to-use-fmod-to-play-music-over-discord-voice-chat-how-can-i-accomplish-this/21429 "2024-03-30T17:04:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![calebmcintosh](https://avatars.discourse-cdn.com/v4/letter/c/ed8c4c/32.png) [@calebmcintosh](https://qa.fmod.com/u/calebmcintosh)\
**Post date:** [March 30, 2024, 5:04pm UTC](https://qa.fmod.com/t/want-to-use-fmod-to-play-music-over-discord-voice-chat-how-can-i-accomplish-this/21429/1 "2024-03-30T17:04:05Z")

</div>

I’m pretty new to FMOD, and was wondering if there is currently a way to get it to play the music over a Discord call, whether via a bot or through computer input. I wanted to use it in a TTRPG setting due to it’s utility in creating and playing music that adapts to parameters that can be triggered by its user, all while playing continuously, as opposed to playing a single track that doesn’t loop seamlessly.

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [April 7, 2024, 11:55pm UTC](https://qa.fmod.com/t/want-to-use-fmod-to-play-music-over-discord-voice-chat-how-can-i-accomplish-this/21429/2 "2024-04-07T23:55:25Z")

</div>

Hi,

A simple option may be using the FMOD API examples to play the audio in an application window, and then sharing its audio with the call. You could then expand the example to have triggers and more events as they are needed. I suggest using the `simple_event` project as it is already set up to play some events.

The examples can be found here: `"C:\Program Files (x86)\FMOD SoundSystem\FMOD Studio API Windows\api\studio\examples\vs2019\examples.sln"`

Hope this helps.

---

<div class="post-metadata">

**Author:** ![calebmcintosh](https://avatars.discourse-cdn.com/v4/letter/c/ed8c4c/32.png) [@calebmcintosh](https://qa.fmod.com/u/calebmcintosh)\
**Post date:** [April 8, 2024, 8:18pm UTC](https://qa.fmod.com/t/want-to-use-fmod-to-play-music-over-discord-voice-chat-how-can-i-accomplish-this/21429/3 "2024-04-08T20:18:04Z")

</div>

Doing an “audio share” could only be achieved through streaming the window to the call, in which the full quality of the audio is broadcast, but it would require the users to be watching. Then there’s the other option that I could use a virtual audio cable, but it diminishes the sound quality as it would be used as a microphone input. So now, I’m trying to see if there is a feasible way to create a discord bot to play the project.

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [April 16, 2024, 12:00am UTC](https://qa.fmod.com/t/want-to-use-fmod-to-play-music-over-discord-voice-chat-how-can-i-accomplish-this/21429/4 "2024-04-16T00:00:55Z")

</div>

Unfortunately, our HTML5 code will only run in a browser window and will not work in a Discord bot. I will pass the suggestion to our development team to look into supporting applications.

At this time, audio sharing or a virtual cable may be your best option.
