@codingame/monaco-vscode-speech-service-override 15.0.2 → 16.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-speech-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - speech service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "16.0.0"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|
|
@@ -24,6 +24,9 @@
|
|
|
24
24
|
".": {
|
|
25
25
|
"default": "./index.js"
|
|
26
26
|
},
|
|
27
|
+
"./vscode/*.css": {
|
|
28
|
+
"default": "./vscode/src/*.css"
|
|
29
|
+
},
|
|
27
30
|
"./vscode/*": {
|
|
28
31
|
"types": "./vscode/src/*.d.ts",
|
|
29
32
|
"default": "./vscode/src/*.js"
|
|
@@ -15,7 +15,6 @@ export interface ISpeechProviderDescriptor {
|
|
|
15
15
|
}
|
|
16
16
|
export declare class SpeechService extends Disposable implements ISpeechService {
|
|
17
17
|
private readonly logService;
|
|
18
|
-
private readonly contextKeyService;
|
|
19
18
|
private readonly hostService;
|
|
20
19
|
private readonly telemetryService;
|
|
21
20
|
private readonly configurationService;
|
|
@@ -8,7 +8,7 @@ import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platf
|
|
|
8
8
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
9
9
|
import { IHostService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service';
|
|
10
10
|
import { DeferredPromise } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
11
|
-
import { HasSpeechProvider,
|
|
11
|
+
import { HasSpeechProvider, TextToSpeechInProgress, SpeechToTextInProgress, speechLanguageConfigToLanguage, SPEECH_LANGUAGE_CONFIG, SpeechToTextStatus, TextToSpeechStatus, KeywordRecognitionStatus } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/speech/common/speechService';
|
|
12
12
|
import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
13
13
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
14
14
|
import { ExtensionsRegistry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensionsRegistry';
|
|
@@ -17,7 +17,7 @@ import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbe
|
|
|
17
17
|
const speechProvidersExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
18
18
|
extensionPoint: 'speechProviders',
|
|
19
19
|
jsonSchema: {
|
|
20
|
-
description: ( localize(
|
|
20
|
+
description: ( localize(9520, 'Contributes a Speech Provider')),
|
|
21
21
|
type: 'array',
|
|
22
22
|
items: {
|
|
23
23
|
additionalProperties: false,
|
|
@@ -26,11 +26,11 @@ const speechProvidersExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
26
26
|
required: ['name'],
|
|
27
27
|
properties: {
|
|
28
28
|
name: {
|
|
29
|
-
description: ( localize(
|
|
29
|
+
description: ( localize(9521, "Unique name for this Speech Provider.")),
|
|
30
30
|
type: 'string'
|
|
31
31
|
},
|
|
32
32
|
description: {
|
|
33
|
-
description: ( localize(
|
|
33
|
+
description: ( localize(9522, "A description of this Speech Provider, shown in the UI.")),
|
|
34
34
|
type: 'string'
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -42,7 +42,6 @@ let SpeechService = class SpeechService extends Disposable {
|
|
|
42
42
|
constructor(logService, contextKeyService, hostService, telemetryService, configurationService, extensionService) {
|
|
43
43
|
super();
|
|
44
44
|
this.logService = logService;
|
|
45
|
-
this.contextKeyService = contextKeyService;
|
|
46
45
|
this.hostService = hostService;
|
|
47
46
|
this.telemetryService = telemetryService;
|
|
48
47
|
this.configurationService = configurationService;
|
|
@@ -51,24 +50,24 @@ let SpeechService = class SpeechService extends Disposable {
|
|
|
51
50
|
this.onDidChangeHasSpeechProvider = this._onDidChangeHasSpeechProvider.event;
|
|
52
51
|
this.providers = ( new Map());
|
|
53
52
|
this.providerDescriptors = ( new Map());
|
|
54
|
-
this.hasSpeechProviderContext = HasSpeechProvider.bindTo(this.contextKeyService);
|
|
55
53
|
this._onDidStartSpeechToTextSession = this._register(( new Emitter()));
|
|
56
54
|
this.onDidStartSpeechToTextSession = this._onDidStartSpeechToTextSession.event;
|
|
57
55
|
this._onDidEndSpeechToTextSession = this._register(( new Emitter()));
|
|
58
56
|
this.onDidEndSpeechToTextSession = this._onDidEndSpeechToTextSession.event;
|
|
59
57
|
this.activeSpeechToTextSessions = 0;
|
|
60
|
-
this.speechToTextInProgress = SpeechToTextInProgress.bindTo(this.contextKeyService);
|
|
61
58
|
this._onDidStartTextToSpeechSession = this._register(( new Emitter()));
|
|
62
59
|
this.onDidStartTextToSpeechSession = this._onDidStartTextToSpeechSession.event;
|
|
63
60
|
this._onDidEndTextToSpeechSession = this._register(( new Emitter()));
|
|
64
61
|
this.onDidEndTextToSpeechSession = this._onDidEndTextToSpeechSession.event;
|
|
65
62
|
this.activeTextToSpeechSessions = 0;
|
|
66
|
-
this.textToSpeechInProgress = TextToSpeechInProgress.bindTo(this.contextKeyService);
|
|
67
63
|
this._onDidStartKeywordRecognition = this._register(( new Emitter()));
|
|
68
64
|
this.onDidStartKeywordRecognition = this._onDidStartKeywordRecognition.event;
|
|
69
65
|
this._onDidEndKeywordRecognition = this._register(( new Emitter()));
|
|
70
66
|
this.onDidEndKeywordRecognition = this._onDidEndKeywordRecognition.event;
|
|
71
67
|
this.activeKeywordRecognitionSessions = 0;
|
|
68
|
+
this.hasSpeechProviderContext = HasSpeechProvider.bindTo(contextKeyService);
|
|
69
|
+
this.textToSpeechInProgress = TextToSpeechInProgress.bindTo(contextKeyService);
|
|
70
|
+
this.speechToTextInProgress = SpeechToTextInProgress.bindTo(contextKeyService);
|
|
72
71
|
this.handleAndRegisterSpeechExtensions();
|
|
73
72
|
}
|
|
74
73
|
handleAndRegisterSpeechExtensions() {
|