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
Dictation support for visual studio code #40976
Comments
@JoleCameron Windows7 The key to making this all work well is to have grammars that can seamlessly enter text either in the main editors or input boxes. Also I have command set up for almost all of the common Code keyBindings I do all of the above with no changes to Code. I would be happy to walk you through what I have. It probably would be a good start to understand better what you have now and how you use it. Cheers Update: from your repositories I see you use Vocala and therefore Natlink - you already have most of what you need. (And now I know I was telling you things you already knew :-( |
Thanks for your prompt response. May I start by saying that it's nice to talk about this problem with someone who themselves programs by voice. My journey towards hands-free programming developed a little differently than yours. In my case, I developed a severe case of RSI when typing up my Honours thesis in late 2013. In order to finish my mathematics thesis, I developed basic macros using Vocola 2. I was an inexperienced self-taught programmer before developing this injury, so didn't want to start developing a system to program by voice until my hands could do a little bit of typing to write the commands. Between that, full-time work in a different industry and a couple of years of poor health, and have only returned to my goal to set up programming by voice now. For the PC, I have licenses for Dragon 12.5 Preferred and Dragon 15. As you know, Natlink does not work with Dragon 15 and, given it never had official support, may not work with future versions. Since the compatibility issues have not been resolved in the year since Dragon 15 was released, I have no reason to believe that they will be resolved in the future. Because of this, I will develop a system using inbuilt DVC commands. Note that it is actually possible to write DVC commands like camel , provided that the open-ended variable as at the end of the command. Back to the main point: there are a few reasons why I think that Code need Select-and-Say capabilities.
Anyway, I hope this helps explain why I think that VS Code should incorporate this change. Cheers |
@JoleCameron First let me say that despite the fact that we have arrived at where we are from slightly different paths, one thing I think is probably very common; everyone starts off frustrated using voice control / dictation for programming. I was very reluctant to use Dragon in the beginning given its peculiarities , limitations.
I would strongly suggest giving Dragonfly grammars a try, and I would be happy to help with this. BTW I think one way Code could support this more as with a combination of recipes and perhaps |
Thanks for the offer, but as I am choosing to stick with the current version of Dragon (for reasons of employability and to make sure my system works long-term) your method won't work in my case. It's easy enough to fake continuous command recognition - that's not my issue here. And my setup is fine. When it comes down to it: yes, I think I can get it to work without any changes to Code. However, this will require using workarounds that I wouldn't need to use if Microsoft lived up to its own accessibility standards for speech input. Sure, Dragon's not designed for programming, but I'm not asking for a special method to program by voice, just that the text box is designed according to Microsoft's own standards. |
@JoleCameron After all my work with this done without help, I'd like to help you get the most out of voice programming. I think you have a couple options:
Finally without sounding defensive (I am not) , Code does not violate nor does it incorrectly implement Let me know if you'd like to do some of these experiments. |
Any thoughts on the above? Is there's something very specific to address given my comments? |
Sorry for not getting back to your sooner. I've been both busy and unwell this week, and I let this slide. My microphone also died last night, so I'm having to type this by hand. Hence, I'll be brief. My concerns with VS Code boil down to the fact that I can't even dictate into the main text box without using a Dragon command, let alone have Select-and-Say access. Given that Microsoft provides an essential service (Windows), I think that the problem isn't entirely Nuance's fault. Beyond that, things go beyond my level of knowledge. I would appreciate input on setting up programming by voice using Dragon 15, but I'd rather not do that through a public forum. To that end, I sent you a private message on the knowbrainer forum. I'll probably want input at about the one month mark. |
I also program by voice. Outside of Select-and-Say capabilities which would be a blessing to have VS Code. There are a number of other ways VS code could improve accessibility as well. First a little bit about my set up.
Windows 10 64-bit -(8GB) of RAM - i5 7200U
Microsoft and VS code contributors could at empower the voice to code community to develop extensions that facilitate accessibility. There are some outstanding limitations with Castor and Dragonfly both interact by emulating keystrokes in VS code. A uses example. Which is why we need A method to expose the VSCode active 'when Clause Contexts'. |
I’m trying to use Dictation on a Mac and it doesn’t handle actually dictating text. I can perform commands such as open new file and such using Dictation in VSCode. |
having this problem as well with mac dictation, I tried saving snippets in dictation under commands VScode appears to be unable to handle them, but when I say worries are not under commands VScode prints those |
I'm legally blind, and while I can program reasonably well through conventional means I'm still excited about the possibilities of voice programming. I've been working on a voice programming web abb using an open-source JavaScript library called AnnYang. It uses the web standard SpeechRecognition API, which at present only works in Chrome (and apparently also Firefox now, though I haven't tested that). I'm wondering if, since VSCode uses Chromium, I/we can integrate AnnYang into a VSCode extension. If this could work, it would be awesome, because it'd be a free, integrated, cross-platform solution. But I'm not sure how smooth the integration would be, or if AnnYang is powerful enough. But the idea has potential I think... |
I think many developers will really like it when we could use voice command to write code. Especially when people are back at home after a whole day's work. Now voice recognition accuracy is improving, and Microsoft is promoting the "remote-development".With the adoption of 5G, I really hope that voice coding could be integrated into VSCode.At least we could decrease 70% of our time sitting down every day which is really good for our health condition as a developer. |
As a student who is developing wrist pain, I'd also appreciate this. |
Just want to chime in to support this. |
It is super important to have accessible tools for everyone to use. |
I've been investigating alternatives that don't require reliance on the editor to expose information for accessibility via extensions. Microsoft's Accessibility Insights for Windows as a tool to investigate exposing and testing Windows accessibility API |
I support this too. Wrist pain. |
Hi, VS Code developer here 👋
Then we can try to figure out what should be done on the VS Code side and what should be done on the dictation software side. Thanks! |
I don't have answers to most of your questions :( but you have a whole team @ Microsoft (https://blogs.microsoft.com/accessibility/) who does nothing but accessibility. I'd recommend reaching out to Jessica Rafuse (She's pretty awesome). |
Just FYI there is a voice-assistant VS Code extension for Windows. You can find it here https://github.com/b4rtaz/voice-assistant |
@isidorn Thanks for following this thread on automation needs for those of us who prefer or have to command our computer by voice!
|
@fusentasticus thanks for your reply. Let me try to answer:
|
Exploring a different, though related idea in #170554. Please let us know what you think there. |
Hi @JoleCameron, it has been a while since we last touched base with you. How are you finding the dictation support in VS Code these days? Is there anything we can do to help? |
Fyi I am splitting this issue into the part that is actually being worked on: dictation support in the editor (#205263). I think this issue here in particular asks for voice-to-text support in all locations that accept textual input, which is not in scope for February. |
With our February release, there is now support to use your voice to dictate into the editor: https://code.visualstudio.com/updates/v1_87#_use-dictation-in-the-editor After installing the VS Code Speech extension you can use the keyboard shortcut Can people in this issue try it out and report back how it goes? Thanks! |
In reading through this issue, here are my findings:
cc @isidorn, I think this issue can be closed given these findings. |
Thank you very much for those insights. I agree that we can go ahead and close this issue. But I think we should create a follow up feature request for voice to trigger VS Code commands. Something that we currently do not support well, and it would be good to understand the need better. For other requests (when close through API) there are already issues capturing this. Users of the Voice extensions - we plan to do a user study at end of May. If you would like to help, more details can be found here microsoft/vscode-discussions#1144 |
I think we have that as #209906 |
I have assigned #209906 to myself and added the |
Hi,
I wish to lodge a request to have VS Code updated so that it can accept dictation input. Currently, if you try to dictate into VS Code using software like Dragon (the industry standard), nothing happens.
This is important to fix for people like myself who have long term hand injuries and are trying to figure out ways to program by voice. People have managed programming by voice in these situations, but the solutions are difficult to develop and not pretty.
To be clear, I'm not asking that you develop voice commands to input symbols by voice, only that the text boxes in VS Code (and/or Visual Studio) can accept dictation input by Dragon (preferably with full 'select-and-say' support). Voice programmers can take care of the rest.
Does it have to be Dragon? Not necessarily. It could be any local speech recognition engine with good accuracy (I'd argue that the decade old Windows Voice Recognition isn't quite there yet) and the ability to write custom voice commands.
While there are few people using such technologies today, it is a subject of interest to all programmers, because they may need it in the future.
The text was updated successfully, but these errors were encountered: