KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: What happened to the "hashtag [dictation]" command?
Topic Summary:
Created On: 12/16/2021 11:07 AM
Status: Post and Reply
Linear : Threading : Single : Branch
Keyword
 12/16/2021 11:07 AM
User is offline View Users Profile Print this message

Author Icon
brooklyn cabin
Top-Tier Member

Posts: 346
Joined: 02/01/2013

I used to use regularly the "hashtag [dictation]" command, which would place the #at the beginning and remove any spaces between multiple words. It saves a lot of time.
I think it was a KB command because it's now not working once I downloaded KB 2020. Does anyone know the script for it?

I found this old thread but when I tried using the script it was asking me to create lists and I was, sadly, over my head in terms of understanding.

 12/16/2021 05:08 PM
User is online View Users Profile Print this message

Author Icon
Lunis Orcutt
Top-Tier Member

Posts: 39966
Joined: 10/01/2006

We haven't figured out how to add this, as a one-step command, into KnowBrainer or Dragon but as a workaround, you can use 2 steps. 

 

1. Say something like “hash mark who let the dogs out”

2. Say compound that to turn it into a hashtag

Note that compound that only works in Dragon friendly environments 



-------------------------

Change "No" to "Know" w/KnowBrainer 2020
Trial Downloads
Dragon/Sales@KnowBrainer.com 
(615) 884-4558 ex 1

 12/20/2021 11:38 AM
User is offline View Users Profile Print this message

Author Icon
Edgar
Top-Tier Member

Posts: 1276
Joined: 04/03/2009

Hashtag <dictation>

Sub Main
   Dim phrase As String

   phrase = ListVar1
   phrase = Replace (phrase, " ", "")
   phrase = "#" & phrase
   SendKeys phrase, 1
End Sub
-----------------------------

the above hashtag command hashes the dictation without any modification so "hashtag this is a test" produces "#thisisatest". I suspect that "#ThisIsATest" would be more acceptable (without having to say "hashtag cap this cap is cap a cap test"). Try:

Sub Main

Dim words() As String' dimension a string array

Dim dictation As String

Dim k As Integer

Dim result As String

 

dictation=ListVar1

words=Split(dictation," ")

For k = 0 To UBound(words)

result=result & UCase(Left(words(k),1)) & Mid(words(k),2)

Next

SendKeys "#" & result, 1

End Sub

-----------------------------

The above (with capitalization) provides the result that I prefer.



-------------------------

-Edgar
DPI 15.3, 64-bit Windows 10 Pro, OpenOffice & Office 365, Norton Security, Shure X2U XLR to USB mic adapter with Audio Technica DB135 vocal mic, Asus X299-Deluxe Prime, Intel Core i9-7940X (14 core, 4.3 GHz overclocked to 4.9 GHz), G.SKILL TridentZ Series 64GB (4 x 16GB) DDR4 3333 (PC4 26600) F4-3333C16Q-64GTZ, NVIDIA GIGABYTE GeForce GTX 1060 GV-N1060G1 GAMING-6GD REV 2.0 6GB graphics card with 3 1920x1080 monitors

 12/20/2021 12:26 PM
User is online View Users Profile Print this message

Author Icon
Lunis Orcutt
Top-Tier Member

Posts: 39966
Joined: 10/01/2006

Thank you Edgar. We just added your Hashtag <dictation> command (with contribution credits) to KnowBrainer 2020. We only added a space at the end of the phrase



-------------------------

Change "No" to "Know" w/KnowBrainer 2020
Trial Downloads
Dragon/Sales@KnowBrainer.com 
(615) 884-4558 ex 1

 12/20/2021 08:03 PM
User is offline View Users Profile Print this message

Author Icon
Edgar
Top-Tier Member

Posts: 1276
Joined: 04/03/2009

I doubt that I deserve contribution credits - I think I just pasted in something that I found on this forum.

-------------------------

-Edgar
DPI 15.3, 64-bit Windows 10 Pro, OpenOffice & Office 365, Norton Security, Shure X2U XLR to USB mic adapter with Audio Technica DB135 vocal mic, Asus X299-Deluxe Prime, Intel Core i9-7940X (14 core, 4.3 GHz overclocked to 4.9 GHz), G.SKILL TridentZ Series 64GB (4 x 16GB) DDR4 3333 (PC4 26600) F4-3333C16Q-64GTZ, NVIDIA GIGABYTE GeForce GTX 1060 GV-N1060G1 GAMING-6GD REV 2.0 6GB graphics card with 3 1920x1080 monitors

 02/21/2022 05:06 PM
User is offline View Users Profile Print this message

Author Icon
Ag
Top-Tier Member

Posts: 815
Joined: 07/08/2019

I ran across this as I was scanning to try to create an FAQ list. if inflamed a long-standing itch


Not so much a question about how to write the code, a question about what standards there exist for #tags, #CamelCase, #Multi-Word_Tags


Background: although I prefer to use speech recognition on my PC using Dragon, sometimes I unavoidably have to use speech recognition on my iPhone or my watch. I try to do as little as possible on my iPhone. I do more my watch, or at least I would do more if apples shortcuts were more reliable.


I often dictate notes or other items that contain #tags on my PC and my iPhone and my watch in various apps.



But .. the treatment of "hashtag ..." is nonuniform


For example, ... in iPhone reminders, in the notes section of a reminder, if I speak "hashtag Harold William" I get "#HaroldWilliam" - i.e. it removes spaces, producing #CamelCase tags. Annoyingly, such spaces are removed as long as the microphone aspect of the keyboard is active. To get spaces back I need to turn the speech keyboard off and then on again.



Whereas if I say "sharp sign Harold William" I get " #Harold William" -- i.e. spaces are not turned off, and I can keep dictating. I just have to remember that multiword tags are not created by default.


(Annoyingly, I do not know the iPhone/Siri way of saying nospace remove the space between words.)


That's OK, I am not particularly fond of #CamelCase. I think I would prefer #Dashed-Words or #Underscored_Words. But... some tag systems terminate the #tag at the 1st dash. underscores less often.


anyway, I had created Dragon commands like "hashtag "


and I was oscillating a little bit to whether "HASHTAG word1 word1"
should produce #Word1Word2, #Word1-Word2, or #Word1_Word2


when I ran into these incompatibilities between PC Dragon and iPhone and various app handling #tag syntax.


whatever I chose to do for PC Dragon "hashtag "
I found I created lots of problems when I was dictating similar stuff on my iPhone.


so I gave up. and track I've overall given up on saying hashtag, because of that bloody blanket disabling.



Q: has anybody mapped out which applications behave how?




-------------------------

DPG15.6 (also DPI 15.3) + KB, Sennheiser MB Pro 1 UC ML, BTD 800 dongle, Windows 10 Pro, MS Surface Book 3, Intel Core i7-1065G7 CPU @ 1.3/1.5GHz (4 cores, 8 logical, GPU=NVIDIA Quadro RTX 3000 with Max-Q Design.

Statistics
32324 users are registered to the KnowBrainer Speech Recognition forum.
There are currently 2 users logged in.
The most users ever online was 12124 on 09/09/2020 at 04:59 AM.
There are currently 482 guests browsing this forum, which makes a total of 484 users using this forum.

FuseTalk Standard Edition v4.0 - © 1999-2022 FuseTalk™ Inc. All rights reserved.