Example_of_text-to-speech_translation.ps1


<#PSScriptInfo
 
.VERSION 1.0
 
.GUID 8b66dd19-eaf9-42cc-b050-6c55abf2f2d9
 
.AUTHOR antonov.anton
 
.COMPANYNAME
 
.COPYRIGHT
 
.TAGS
 
.LICENSEURI
 
.PROJECTURI
 
.ICONURI
 
.EXTERNALMODULEDEPENDENCIES
 
.REQUIREDSCRIPTS
 
.EXTERNALSCRIPTDEPENDENCIES
 
.RELEASENOTES
 
 
#>


<#
 
.DESCRIPTION
 Example of text-to-speech translation
 
#>
 

Param()


# Example of text-to-speech translation
$Name = read-host "������� ���� ���"

$Mood = read-host "����� � ��� ����������?"

$You = "� ���"

$MoodV = "����������"

$GoodDay = read-host "�� ������ ������ �������� ����?"

$GoodDay = "�� ������ ������ �������� ����!"

$SpeakContext = "������ ����"
Add-Type -AssemblyName System.speech
$speak = New-Object System.Speech.Synthesis.SpeechSynthesizer
$speak.Speak($SpeakContext + $Name + $Mood + $You + $MoodV + $GoodDay)