Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
codemakerai-dev committed Jun 26, 2024
1 parent 556fd36 commit 623be4b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/assistant/speechServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,13 @@ export default class SpeechServer {
res.write(result.audio);
res.end();
}).catch((err) => {
console.log(err);
res.writeHead(500);
res.end();
});
};

this.server = http.createServer(requestListener);
this.server.listen(this.port, this.host, () => {
console.log(`Server is running on http://${this.host}:${this.port}`);
});
this.server.listen(this.port, this.host);
}

url() {
Expand Down

0 comments on commit 623be4b

Please sign in to comment.