Giter VIP home page Giter VIP logo

Comments (2)

garethbowker avatar garethbowker commented on September 26, 2024

One way to do this if you're using macOS or Linux is to run the following terminal commands:

for f in *.txt; do fn=${f%.txt}; aws-tts $f ${fn##*/}.mp3 _--voice Mizuki --region eu-west-1_; done

It'll take all your .txt files in the current directory and turn them into mp3 files.

Alternatively, if you've got a file that contains a list of just the files to process, you could do this (assume it's called reprocess.txt):

for f in `cat reprocess.txt`; do fn=${f%.txt}; aws-tts $f ${fn##*/}.mp3 _--voice Mizuki --region eu-west-1_; done

I believe Windows can run BASH scripts now too, so you might be able to get it working there too if that's what you need.

from tts.

eheikes avatar eheikes commented on September 26, 2024

Yeah, I think this is outside the scope of aws-tts. As @tgb said, processing a series of documents should be pretty easy using the OSX/Linux/Unix shell or Windows Bash shell. Windows' PowerShell or batch files can also probably do it.

from 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.