Giter Club home page Giter Club logo

Comments (6)

Niek avatar Niek commented on August 19, 2024

Thanks! Currently there is no way to control the voice too much, we rely on the browser speech utterance support. We might add some more options later or rely on a third party for utterance.

from chatgpt-web.

nick-harder avatar nick-harder commented on August 19, 2024

ok, thanks! But is there a way to stop the voice once it started? because it even continues speaking if I change the chat, and for long messages this is very problematic. Can I change somehting inside the code itself? Would appreciate any help.

from chatgpt-web.

Niek avatar Niek commented on August 19, 2024

See:

if (recorded && 'SpeechSynthesisUtterance' in window) {
const utterance = new SpeechSynthesisUtterance(choice.message.content)
window.speechSynthesis.speak(utterance)
}

Basically we need to cancel() if needed: https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/cancel

from chatgpt-web.

nick-harder avatar nick-harder commented on August 19, 2024

ok, I will look into it and add a button to cancel in the chat.

from chatgpt-web.

Webifi avatar Webifi commented on August 19, 2024

Starting with #152, TTS will now stop after changing to a different chat or clicking the microphone button.

from chatgpt-web.

Niek avatar Niek commented on August 19, 2024

Closing as completed by #152

from chatgpt-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.