This Python script is designed to process audio files exported by an Android voice recorder app: Tokasiki Voice Recorder (it is not available anymore on Google Play Store!), created by Mamoru Tokashiki (The last update of the app was on November 25, 2014)
For each recording, it looks for an associated text file containing metadata and copies the audio file with a new filename based on extracted date, filetitle, and time information. If the text file is missing, the new filename is generated without the optional filetitle field.
The original modification time of the file is preserved for the copied file.
-
Clone or download this repository to your local machine.
git clone https://github.com/your-username/voice-recorder-renamer.git
-
Ensure you have Python installed on your machine.
-
Open a terminal and navigate to the project directory.
cd voice-recorder-renamer
-
Run the script.
python renamer.py
The script will iterate through each audio file in the specified directory, extract metadata from the corresponding text file, and copy the audio file with a new filename. If the text file is missing, the new filename is generated without the optional filetitle field.
- The script assumes a directory structure where audio files (extension '.3gp') have names starting with 'data-' and corresponding text files have similar names but with '.txt' extension.
- Audio file:
data-YYYY-MM-DD-HH-II-SS.3gp
- Text file:
YYYY-MM-DD-HH-II-SS.txt
YYYY-MM-DD-HH-II-SS, filetitle, number
- With filetitle:
YYYY-MM-DD - filetitle (HH-II-SS).3gp
- Without filetitle:
YYYY-MM-DD - (HH-II-SS).3gp
- Teodor Muraru
This project is licensed under the MIT License - see the LICENSE file for details.