Skip to content

Commit c8e3e63

Browse files
committed
Prevent tts engine from speaking over itself
1 parent b205b2a commit c8e3e63

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ lib/
88
*.swp
99
*~.nib
1010
*.json
11+
*.log
1112
.DS_Store
1213
local.properties
1314
.settings/

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ AutoCF stands for "Automated Content Farm" and is an application that creates vi
33

44
With AutoCF, you can automate the creation of these low quality videos.
55

6+
You can view an example of a generated video [here](https://www.youtube.com/watch?v=bQcwFujpVX8).
67

78
## Installation
89
You can run AutoCF by doing the following:

src/narrator/VisibleNarratorOSX.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,13 @@ private void startSpeaking(String message) {
3030
@Msg(selector = "speechSynthesizer:didFinishSpeaking:", signature = "v@:B")
3131
public void didFinishSpeaking(boolean naturally) {
3232
if(speakingQueue.isEmpty()) {
33-
speaking = false;
33+
speaking = (boolean) this.synth.sendBoolean("isSpeaking");
3434
}
3535
else {
3636
startSpeaking(speakingQueue.poll());
3737
}
3838
}
39+
3940
public boolean isSpeaking() {
4041
if(speakingQueue.isEmpty()) {
4142
return speaking;

0 commit comments

Comments
 (0)