Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Record method for My.Computer.Audio #612

Open
salelele opened this issue Jan 20, 2022 · 3 comments
Open

Record method for My.Computer.Audio #612

salelele opened this issue Jan 20, 2022 · 3 comments

Comments

@salelele
Copy link

My.Computer.Audio provides a Play methodto play back sounds but to record sounds we have to go to the OS API for dioing so. Providing a complimentary "Record" method for "My.Computer.Audio" would be helpful.

It would not increase the surface area of the language. Also, regardless if platform, programmers should just use "My.Computer.Audio.Record()" to capture sounds.

@ElektroStudios
Copy link

ElektroStudios commented Nov 17, 2022

Your request is more related to a lack of functionality in a specific library than to the VB.NET programming language itself, since you can always reference the Microsoft.VisualBasic.dll in C#, and this DLL contains the Computer class in the Microsoft.VisualBasic.Devices namespace.

Anyway. Recording implies the implementation of many related things such as the availability to choose the output audio format, frequency, bitrate, source device, etc.

They (the dev. team) won't try as hard. VB.NET has been a practically dead language for many years with minimal additions incomparable to all the improvements and new features that C# syntax gets in every new version.

Cheers.

@AnthonyDGreen
Copy link
Contributor

@salelele out of curiosity, what would you do with the record method? Like just record .wav files or some sort of speech recognition?

@salelele
Copy link
Author

salelele commented Dec 1, 2022

@salelele out of curiosity, what would you do with the record method? Like just record .wav files or some sort of speech recognition?

We needed it both for Speech Recognition and for capturing sound! This year, we have worked on two VB.BNET applications with regards to sound. The first was Speech Recognition and the other was a "sound studio" (capture sound, mix it, edit it...things like that). VB.NET allows you to play sounds but will not let you capture/record it unless if you went to the Windows API, so would it not have made sense to have it through My.Computer.Audio? That is My.Computer.Audio.Play should have an equivalent My.Computer.Audio.Record or capture as you would have it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants