MCPcopy Create free account
hub / github.com/Roy3838/Observer / setWhisperTask

Method setWhisperTask

app/src/utils/settings.ts:120–128  ·  view source on GitHub ↗
(task?: 'transcribe' | 'translate')

Source from the content-addressed store, hash-verified

118 }
119
120 public setWhisperTask(task?: 'transcribe' | 'translate'): void {
121 const settings = this.getWhisperSettings();
122 if (task) {
123 settings.task = task;
124 } else {
125 delete settings.task;
126 }
127 this.setWhisperSettings(settings);
128 }
129
130 public setWhisperLanguage(language?: string): void {
131 const settings = this.getWhisperSettings();

Callers 1

handleTaskChangeFunction · 0.80

Calls 2

getWhisperSettingsMethod · 0.95
setWhisperSettingsMethod · 0.95

Tested by

no test coverage detected