Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pulijon/cpodcast
Script to cut mp3 files in fragments of specified size prefixed with TTS information
https://github.com/pulijon/cpodcast
Last synced: about 1 month ago
JSON representation
Script to cut mp3 files in fragments of specified size prefixed with TTS information
- Host: GitHub
- URL: https://github.com/pulijon/cpodcast
- Owner: pulijon
- Created: 2022-07-13T08:46:05.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-13T09:05:48.000Z (over 2 years ago)
- Last Synced: 2023-03-11T14:46:04.297Z (almost 2 years ago)
- Language: Shell
- Size: 1.15 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rationale for cutpodcast.bash
I really love podcasts. Now it is very easy to play them in phones, tablets or smart devices. They are able to remember the exact point where the playing was paused or stopped and so, they can easily resume the audition from that point.
However, there are still devices on which playing is not so easy. Old mp3 players, or specialized players (e.g. for swimming or cars), have very limited controls and it can be very annoying to stop a large podcast in minute 78 and, when resuming, discover that it is in minute 0.
The script cutpodcast.bash seeks to solve that problem by including the following features:
* It cuts large podcasts in fragments of a maximum size, expressed in seconds
* It includes a TTS (Text to Speech) prefix to easily identify the fragment.
* It copies the fragments in the target device very carefully to avoid the disorder of tracks caused by the optimizing strategies of operating systems (it makes a "sync" to flush writing buffers between copies)# Requirements
cutpodcast.bash requires:
* A bash installation, better in Linux, but it could work in other systems
* ffmpeg. An impressive set of tools for audio and video streams.
* id3tool. Tool to manage tags in mp3 files.
* gtts-cli. The Google engine for TTS that makes use of web services# Use
```bash
cutpodcast
```Where:
* **\** is the large mp3 file to cut
* **\** is the maximum size in seconds of each fragment (excluding TTS prefix)
* **\** is the tag for the album that serves to make the file names for the fragments
* **\** is the folder where the tagged and prefixed fragments are copied.
This directory is intended to be part of a removable storage
* **\** is the text which, together with the track number, forms the "speech" prefix of all tracks