-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathindex.md
More file actions
56 lines (37 loc) · 1.09 KB
/
index.md
File metadata and controls
56 lines (37 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
title: "SpeechSynthesis: resume() Methode"
short-title: resume()
slug: Web/API/SpeechSynthesis/resume
l10n:
sourceCommit: acfe8c9f1f4145f77653a2bc64a9744b001358dc
---
{{APIRef("Web Speech API")}}
Die **`resume()`** Methode des [`SpeechSynthesis`](/de/docs/Web/API/SpeechSynthesis)-Interfaces versetzt das `SpeechSynthesis`-Objekt in einen nicht pausierten Zustand: setzt es fort, wenn es bereits pausiert war.
## Syntax
```js-nolint
resume()
```
### Parameter
Keine.
### Rückgabewert
Keiner ({{jsxref("undefined")}}).
## Beispiele
```js
let synth = window.speechSynthesis;
let utterance1 = new SpeechSynthesisUtterance(
"How about we say this now? This is quite a long sentence to say.",
);
let utterance2 = new SpeechSynthesisUtterance(
"We should say another sentence too, just to be on the safe side.",
);
synth.speak(utterance1);
synth.speak(utterance2);
synth.pause(); // pauses utterances being spoken
synth.resume(); // resumes speaking
```
## Spezifikationen
{{Specifications}}
## Browser-Kompatibilität
{{Compat}}
## Siehe auch
- [Web Speech API](/de/docs/Web/API/Web_Speech_API)