spectreconsole / spectre.console

A .NET library that makes it easier to create beautiful console applications.
https://spectreconsole.net
MIT License
9.17k stars 472 forks source link

Sounds #1165

Open RealDotNetDave opened 1 year ago

RealDotNetDave commented 1 year ago

It would be beneficial to add a new feature to play sounds with spectre.console. For example, sounds for prompts, errors, success, etc.

Many thanks for considering my request.


Please upvote :+1: this issue if you are interested in it.

patriksvensson commented 1 year ago

Could you elaborate a bit on what you mean with sound? Do you mean something like emitting ASCII BEL or functionality for playing audio files?

RealDotNetDave commented 1 year ago

Right now, just similar to the Console.Beep command. Using different frequencies for sounds. Audio files would be nice too.

webmaster442 commented 1 year ago

Windows terminal since Preview v1.15.186 (https://github.com/microsoft/Terminal/pull/13208) version supports the DECPS escape sequence, which allows you to play sound. (https://vt100.net/emu/ctrlseq_dec.html) If possible, the implementation I think should support both the Console.Beep() and the DECPS escape sequences.