• EnglishSpanishGermanFrenchPolishChinese (Traditional)


EnglishSpanishGermanFrenchPolishChinese (Traditional)

Operating systems, scripting, PowerShell and security

Operating systems, software development, scripting, PowerShell tips, network and security

Menú principal
  • Categorías
  • Cursos
  • Libro de PowerShell
  • Lo mejor
  • Lo último
  • Proyectos
  • Contactar
Ir al contenido

Convertir un fichero WAV a texto

PowerShell
1
2
3
4
5
6
7
8
9
10
11
12
#Abrir un fichero WAV y convertir a texto el contenido
#En esta versión se lee el fichero WAV mientras que haya sonido por procesar, también se almacena el texto convertido en un fichero
 
[void][reflection.assembly]::loadwithpartialname('system.speech')
$rec = New-Object 'System.Speech.Recognition.SpeechRecognitionEngine'
$rec.LoadGrammar((New-Object 'System.Speech.Recognition.DictationGrammar'))
$rec.SetInputToWaveFile('d:\holas.wav')
 
do
{
$rec.Recognize().Text | Out-File d:\wavtext.txt -Append
}while($rec.AudioFormat)

Publicado el día 12 de abril de 2016

CATEGORÍAS

Multimedia, PowerShell, Reconocimiento

ETIQUETAS

Append, Jesús Niño Camazón, LoadWithPartialName, New-Object, Out-File, Reflection.Assembly, system.speech, System.Speech.Recognition.DictationGrammar, System.Speech.Recognition.SpeechRecognitionEngine

MÁS

  • Ejercicios de PowerShell: realizar operaciones en un equipo remoto
  • Crear una aplicación mediante en PowerShell que incremente y disminuya la frecuencia de sonido
  • Escribir y un mensaje en una caja de texto y hacer click en un botón de un formulario de PowerShell de forma automática utilizando SendMessage y FindWindowEx de user32.dll
  • Ejercicios de seguridad: práctica sobre virus
  • Cómo depurar scripts en ISE de Windows PowerShell
  • Convertir un script de PowerShell en un ejecutable de Windows (convertir un formulario en PowerShell)