#Speaker Component in Viam?

1 messages · Page 1 of 1 (latest)

compact mountain
#

I know there is already a Microphone/audio_input component already, but what about a Speaker/Audio_output component?

I'd like the ability to control a/multiple speaker(s) through viam, including volume.
Extra bonus points if we can call sounds stored on local file system(and from web URI?) (for startup sounds, "warning! Please charge me" or.. some soundboard fun?! (https://johnnyfivesoundboard.com/audio/))

sand palm
#

there is some amount of audio output functionality but it is focused on streaming audio (think walkie talkie functionality).

for what you are trying to do (play sound clips), i think a custom component might be better. you could simply play the audio file as you would in any given program/script and have that trigger via a command. does that seem to make sense? suit your use case?

compact mountain
#

Yeah i think custom component is the path to take for that then.

Could you by chance share a link to some documentation for that?

sand palm
#

sure. are you planning to use python or go? or ?

compact mountain
#

python

sand palm
compact mountain
#

Thank you!