Quantcast
Viewing all articles
Browse latest Browse all 10

Meu shell aprendeu a falar!/ My shell has just learned how to talk!

Bem o título é meio exagerado, mas é bem a surpresa de quem vê o resultado do que foi feito pela equipe desenvolvedora do Powershell Comunity Extensions (PSCX). O PSCX é um conjunto de scripts que são adicionados ao ambiente de execução do Powershell, e possui várias coisas interessantes/úteis.

Uma das coisas interessantes e que deixa todos que vêem de queixo no chão, é o comando Out-Speech. E é exatamente isso que você está pensando. Dada uma string passada como parâmetro, o comando usa a Speech API do .NET Framework e fala (isso mesmo fala) o texto. A sintaxe é bem simples:

Out-Speech "texto a ser lido"

É possível usar o comando em combinação com o Get-Content e fazê-lo ler um arquivo texto completo.

Um pequeno problema é que a fonética é inglesa, então não fica legal mandar textos em português ou em outras linguas serem pronunciados.

===================================================

Well, the title is a bit exaggerated, but is exactly the surprise of someone who has seen the result of what was done by the Powershell Comunity Extensions (PSCX) developer team. The PSCX is a set of scripts that are added to the Powershell’s execution environment and it has many interesting/useful things.

One of the interesting things that let everyone astonished is the command Out-Speech. And that’s exactly what you are thinking! Given a string as a parameter, the command uses the Speech API from .NET Framework e talks (yes, that’s really what i’d written, talks) the text. The sintax is very simple:

Out-Speech "text to be read"

It’s possible then to use the command ‘in combo’ with the Get-Content and make it read an whole textfile.

One little problem is the english phonetic. As so, it’s not good to make it read texts in other languages.

[1] PowerShell Community Extensions


Publicado em Admin, Microsoft, Plays, PowerShell, Windows Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 10