Interface orientée-objet Dictation (reconnaissance vocale).

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Interface orientée-objet Dictation (reconnaissance vocale).

Re: Interface orientée-objet Dictation (reconnaissance vocale).

Post by A_AhkUser » 12 Jul 2020, 17:33

Merhaba hasantr,

Thanks for your comments.... and sorry for the delayed response...
hasantr wrote:
21 Jul 2019, 15:20
There is such a problem. When the plugin window does not appear, we get rid of the crowd. Unfortunately, sometimes the plug-in is not closed and continues to listen to conversations for a long time.
Unfortunately, I cannot reproduce this behaviour. In fact, by setting the hideChromeInstance property to true, you simply
hides the relevant chrome window and the script should behave the same way in every aspect except that it should now recognize hidden windows
and operate consequently on the hidden chrome instance window.
hasantr wrote:
21 Jul 2019, 15:20
I want to make sure that my voice will no longer record when the recording time is over. Maybe a "Rec" text can be put on the screen. When I click on Rec, I can be sure that I definitely stopped recording.
Such a "rec" text actually exists on chrome: it appears on the top of the tab near the tab title when a site is currently using the microphone. The problem
lies in the fact that the present script launches chrome in app mode (if I remember well, it has been made necessary by a difficulty to identify
the correct chrome window). Yet, in app mode, this built-in little icon does not appear... The extension simulates clicks on the site: when you do
such clicks yourself on the site the script is taking advantage of and from chrome, without the extension, the "rec" little icon does appears and
disappears; there is no reason for the site to react differently when javascript do it for you. Maybe there is some command that fails to operate
on the hidden window somewhere in the script. I will try to check the script again when I have time.
This script is mostly a proof of concept. You might find gregster's speech recognition script more reliable, as it use an API.

Thanks much again for your feedback hasantr cheers.

A_AhkUser

Re: Interface orientée-objet Dictation (reconnaissance vocale).

Post by hasantr » 21 Jul 2019, 15:20

Thank you so much. It works great in the new example. There is probably no other alternative that succeeds in this regard for free.
A_AhkUser wrote:
20 Jul 2019, 10:43
Hi hasantr,
Off course :D: I just added a commented exemple. ;) In it, the final recognition result is sent to the input-capable control where the caret lies, if applicable.
There is such a problem. When the plugin window does not appear, we get rid of the crowd. Unfortunately, sometimes the plug-in is not closed and continues to listen to conversations for a long time. I want to make sure that my voice will no longer record when the recording time is over. Maybe a "Rec" text can be put on the screen. When I click on Rec, I can be sure that I definitely stopped recording.
I was surprised to see some of my private speeches as articles. :) Is the technology actually annoying? :)

Re: Interface orientée-objet Dictation (reconnaissance vocale).

Post by A_AhkUser » 20 Jul 2019, 10:43

Hi hasantr,

Thanks for your feedback hasantr, much appreciated.
hasantr wrote:
14 Jul 2019, 06:52
Can you make an example that will send text to a place where the mouse cursor is checked?
Off course :D: I just added a commented exemple. ;) In it, the final recognition result is sent to the input-capable control where the caret lies, if applicable.
hasantr wrote:
14 Jul 2019, 06:52
I don't want the browser extension window to appear in person. Is there any way to hide it?
Yes! You simply need to set - as in the added exemple - the base property hideChromeInstance to true - that is:

Code: Select all

Dictation.hideChromeInstance := true
Let me know if you have any further questions about this script or need more exemples.
Cheers

Re: Interface orientée-objet Dictation (reconnaissance vocale).

Post by hasantr » 14 Jul 2019, 06:52

This is a great work. This works very well. You're very successful, man. :) :bravo:

Can you make an example that will send text to a place where the mouse cursor is checked?

I don't want the browser extension window to appear in person. Is there any way to hide it?

Interface orientée-objet Dictation (reconnaissance vocale).

Post by A_AhkUser » 06 Jan 2018, 20:00

Une interface orientée-objet qui permet d'intégrer et de mobiliser la reconnaissance vocale - reconnaît le français, l'espagnol, l'anglais et le russe, entre autres - comme ressource dans un script AutoHotkey.
Le script ne fonctionnera qu'avec chrome. La communication avec chrome est rendue possible par le déploiement d'une extension, élaborée de telle sorte qu'elle parle un langage que le script est en mesure de reconnaître et d'interpréter pour y répondre de manière appropriée. Une fois l'extension déployée et avant la première utilisation du script, il faudra veiller à spécifier son ID tout en haut de la classe Dictation:

[attachment=0]Dictation.png[/attachment]

@Class.Dictation.ahk

Code: Select all

Class Dictation {

	; ==========================================
	static ID := "" ; <<<< Placez ici l'ID de l'extension; par example: "ejjjdhlcmnppdkjfgmopeiobcbhapppl"
	; ==========================================

		, url := "https://dictation.io/speech"

		hideChromeInstance := false
		, recognitionLanguage := ""
		, recognizing := false
		, iteratorPeriod := 400
		, interimResultTimeout := 14
		, lastInterimResultElapsedTime := 0
		, lastInterimResult := ""
		, onInterimResultFunc := this.updateInterimResults
                , onResultFunc := this.saveToClipboard
; ...
Deux évènements - onInterimResult et onResult - sont susceptibles d'appeler des fonctions callback.

Dictation-Interface (contient un exemple commenté).


Dernière mise à jour testée sur Chrome Version 69.0.3497.81 (Build officiel) (64 bits) [ahk v1.1.29.01].
Attachments
Dictation.png
Dictation.png (9.48 KiB) Viewed 15473 times

Top