File tree 2 files changed +11
-12
lines changed
src/libraries/System.Speech/tests 2 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 17
17
18
18
namespace SampleSynthesisTests
19
19
{
20
- [ ConditionalClass ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsNotWindowsNanoNorServerCore ) ) ] // No SAPI on Nano or Server Core
21
- [ SkipOnMono ( "No SAPI on Mono" ) ]
20
+ // [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsNanoNorServerCore))] // No SAPI on Nano or Server Core
21
+ // [SkipOnMono("No SAPI on Mono")]
22
22
public static class SpeechRecognizerTests
23
23
{
24
24
private static bool RecognizerInstalledAndEnabled ( )
@@ -42,16 +42,15 @@ private static bool RecognizerInstalledAndEnabled()
42
42
// PlatformNotSupportedException : No recognizer is installed.
43
43
// PlatformNotSupportedException : The user has chosen to disable speech from running on the machine, or the system is not set up to run speech.
44
44
// InvalidOperationException : No audio device is installed.
45
- //return false;
46
- // TEMPORARY -- to see error messages
47
- return true ;
45
+ return false ;
48
46
}
49
47
50
48
return true ;
51
49
}
52
50
53
- [ ConditionalFact ( nameof ( RecognizerInstalledAndEnabled ) ) ]
54
- [ OuterLoop ] // Pops UI
51
+ // [ConditionalFact(nameof(RecognizerInstalledAndEnabled))]
52
+ // TEMPORARY [OuterLoop] // Pops UI
53
+ [ Fact ]
55
54
public static void SpeechRecognizer ( )
56
55
{
57
56
if ( Thread . CurrentThread . CurrentCulture . ToString ( ) != "en-US" )
Original file line number Diff line number Diff line change 17
17
18
18
namespace SampleSynthesisTests
19
19
{
20
- [ ConditionalClass ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsNotWindowsNanoNorServerCore ) ) ] // No SAPI on Nano or Server Core
21
- [ SkipOnMono ( "No SAPI on Mono" ) ]
20
+ // [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsNanoNorServerCore))] // No SAPI on Nano or Server Core
21
+ // [SkipOnMono("No SAPI on Mono")]
22
22
public class SynthesizeRecognizeTests : FileCleanupTestBase
23
23
{
24
24
// Our Windows 7 and Windows 8.1 queues seem to have no recognizers installed
25
- public static bool HasInstalledRecognizers => PlatformDetection . IsNotMonoRuntime &&
26
- PlatformDetection . IsNotWindowsNanoNorServerCore &&
27
- SpeechRecognitionEngine . InstalledRecognizers ( ) . Count > 0 ;
25
+ public static bool HasInstalledRecognizers => true ; // PlatformDetection.IsNotMonoRuntime &&
26
+ // PlatformDetection.IsNotWindowsNanoNorServerCore &&
27
+ // SpeechRecognitionEngine.InstalledRecognizers().Count > 0;
28
28
29
29
[ ConditionalFact ( nameof ( HasInstalledRecognizers ) ) ]
30
30
public void SpeechSynthesizerToSpeechRecognitionEngine ( )
You can’t perform that action at this time.
0 commit comments