[void][reflection.assembly]::loadwithpartialname('system.speech') $rec = New-Object 'System.Speech.Recognition.SpeechRecognitionEngine' $rec.LoadGrammar((New-Object 'System.Speech.Recognition.DictationGrammar')) $rec.SetInputToDefaultAudioDevice() do { if($rec.Recognize().Text -match "mail") { "Enviar correo" Send-MailMessage -to "[email protected]" -from "[email protected]" -subject "Correo prueba" -SmtpServer localhost } }while(1)
Enviar un mail mediante el reconocimiento de voz del sistema operativo con PowerShell (Reconocimiento, PowerShell, Multimedia)
Except where otherwise noted, Jesusninoc by Jesús N. is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.