-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Closed
Labels
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreWG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtimeWaiting - DotNetCorewaiting on a fix/change in .NETwaiting on a fix/change in .NET
Description
The following code works in PowerShell 5.1, but throws an error on 7.0 and 7.1.0-preview1
Add-Type -AssemblyName System.speech
$speak = New-Object System.Speech.Synthesis.SpeechSynthesizer
PS C:\Users\User> $speak.Speak("This is Windows talking.")
On PowerShell 5.1, the expected result happens, i. e. the system speaks the text. On 7.0 and apparently later, it throws the following error:
MethodInvocationException: Exception calling "Speak" with "1" argument(s): "Object reference not set to an instance of an object."
Metadata
Metadata
Assignees
Labels
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreWG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtimeWaiting - DotNetCorewaiting on a fix/change in .NETwaiting on a fix/change in .NET