Giter Site home page Giter Site logo

Comments (2)

bk111 avatar bk111 commented on August 19, 2024

已经解决!

fr1 = '''et l'éléphant.Le lion l'ait. Mais dit: "Mais j'ai coq." Prométhée a dit: "Pourquoi me raison? Vous." Le lion se cesse , s'est reproché d'être l'éléphant, et , bavarda. Voyant l'éléphant oreilles, il demanda : " Qu'est-ce toi ? Pourquoi oreilles ? " L'éléphant répondit , "Voyez-vous bourdonnants? S'ils , je serai fini." Après cela, le lion réalisa: "Alors mort?Un qu'un éléphant. '''

fr3 = fr1.replace('"','\"') 这里要 双斜杠

os.system(f"""edge-tts --voice fr-FR-HenriNeural --text "{fr3}" --write-media 4111.mp3""") -------------这组也ok

from edge-tts.

rany2 avatar rany2 commented on August 19, 2024

It can, you just aren't quoting it properly. Just put the text in a file and use --file to save yourself the hassle of quoting (or use the library directly)

from edge-tts.

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.