audiototext-optimizer 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- audiototext_optimizer-0.1.0/PKG-INFO +52 -0
- audiototext_optimizer-0.1.0/README.md +37 -0
- audiototext_optimizer-0.1.0/pyproject.toml +27 -0
- audiototext_optimizer-0.1.0/setup.cfg +4 -0
- audiototext_optimizer-0.1.0/src/audiototext_optimizer/__init__.py +4 -0
- audiototext_optimizer-0.1.0/src/audiototext_optimizer/cli.py +57 -0
- audiototext_optimizer-0.1.0/src/audiototext_optimizer.egg-info/PKG-INFO +52 -0
- audiototext_optimizer-0.1.0/src/audiototext_optimizer.egg-info/SOURCES.txt +9 -0
- audiototext_optimizer-0.1.0/src/audiototext_optimizer.egg-info/dependency_links.txt +1 -0
- audiototext_optimizer-0.1.0/src/audiototext_optimizer.egg-info/entry_points.txt +2 -0
- audiototext_optimizer-0.1.0/src/audiototext_optimizer.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: audiototext-optimizer
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A lightweight CLI tool to optimize audio and video files for AI Speech-to-Text transcription.
|
|
5
|
+
Author-email: FreeAudioToText Developer <support@freeaudiototext.com>
|
|
6
|
+
Project-URL: Homepage, https://freeaudiototext.com
|
|
7
|
+
Project-URL: Documentation, https://freeaudiototext.com
|
|
8
|
+
Project-URL: Repository, https://github.com/double2dev/audiototext
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Classifier: Topic :: Multimedia :: Sound/Audio :: Conversion
|
|
13
|
+
Requires-Python: >=3.7
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
|
|
16
|
+
# AudioToText Optimizer
|
|
17
|
+
|
|
18
|
+
A lightweight, local command-line tool designed to prepare and compress audio/video files for fast, highly accurate AI Speech-to-Text transcription.
|
|
19
|
+
|
|
20
|
+
This tool is created and maintained by [FreeAudioToText.com](https://freeaudiototext.com).
|
|
21
|
+
|
|
22
|
+
## Why use this tool?
|
|
23
|
+
|
|
24
|
+
Most modern AI transcription models (like Whisper) downsample audio to 16kHz mono before processing. Uploading a massive 4K video file or a 320kbps stereo MP3 to a transcription service just wastes bandwidth and upload time.
|
|
25
|
+
|
|
26
|
+
`audiototext-optimizer` uses `ffmpeg` locally to perfectly format your media for transcription (16kHz, mono, 64k bitrate), reducing file sizes by up to 90% without losing any vocal clarity.
|
|
27
|
+
|
|
28
|
+
## Installation
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
pip install audiototext-optimizer
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
*Note: You must have [ffmpeg](https://ffmpeg.org/) installed on your system.*
|
|
35
|
+
|
|
36
|
+
## Usage
|
|
37
|
+
|
|
38
|
+
Simply pass your audio or video file to the CLI:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
audiototext-optimize my_podcast.wav
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
This will automatically create a highly compressed `my_podcast_optimized.mp3` file.
|
|
45
|
+
|
|
46
|
+
You can then upload this optimized file directly to [FreeAudioToText](https://freeaudiototext.com) for secure, privacy-first transcription.
|
|
47
|
+
|
|
48
|
+
## Links
|
|
49
|
+
- [Official Website](https://freeaudiototext.com)
|
|
50
|
+
- [Terms of Service](https://freeaudiototext.com/terms)
|
|
51
|
+
- [Privacy Policy](https://freeaudiototext.com/privacy)
|
|
52
|
+
- [GitHub Repository](https://github.com/double2dev/audiototext)
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# AudioToText Optimizer
|
|
2
|
+
|
|
3
|
+
A lightweight, local command-line tool designed to prepare and compress audio/video files for fast, highly accurate AI Speech-to-Text transcription.
|
|
4
|
+
|
|
5
|
+
This tool is created and maintained by [FreeAudioToText.com](https://freeaudiototext.com).
|
|
6
|
+
|
|
7
|
+
## Why use this tool?
|
|
8
|
+
|
|
9
|
+
Most modern AI transcription models (like Whisper) downsample audio to 16kHz mono before processing. Uploading a massive 4K video file or a 320kbps stereo MP3 to a transcription service just wastes bandwidth and upload time.
|
|
10
|
+
|
|
11
|
+
`audiototext-optimizer` uses `ffmpeg` locally to perfectly format your media for transcription (16kHz, mono, 64k bitrate), reducing file sizes by up to 90% without losing any vocal clarity.
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
pip install audiototext-optimizer
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
*Note: You must have [ffmpeg](https://ffmpeg.org/) installed on your system.*
|
|
20
|
+
|
|
21
|
+
## Usage
|
|
22
|
+
|
|
23
|
+
Simply pass your audio or video file to the CLI:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
audiototext-optimize my_podcast.wav
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
This will automatically create a highly compressed `my_podcast_optimized.mp3` file.
|
|
30
|
+
|
|
31
|
+
You can then upload this optimized file directly to [FreeAudioToText](https://freeaudiototext.com) for secure, privacy-first transcription.
|
|
32
|
+
|
|
33
|
+
## Links
|
|
34
|
+
- [Official Website](https://freeaudiototext.com)
|
|
35
|
+
- [Terms of Service](https://freeaudiototext.com/terms)
|
|
36
|
+
- [Privacy Policy](https://freeaudiototext.com/privacy)
|
|
37
|
+
- [GitHub Repository](https://github.com/double2dev/audiototext)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "audiototext-optimizer"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
authors = [
|
|
9
|
+
{ name="FreeAudioToText Developer", email="support@freeaudiototext.com" },
|
|
10
|
+
]
|
|
11
|
+
description = "A lightweight CLI tool to optimize audio and video files for AI Speech-to-Text transcription."
|
|
12
|
+
readme = "README.md"
|
|
13
|
+
requires-python = ">=3.7"
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Programming Language :: Python :: 3",
|
|
16
|
+
"License :: OSI Approved :: MIT License",
|
|
17
|
+
"Operating System :: OS Independent",
|
|
18
|
+
"Topic :: Multimedia :: Sound/Audio :: Conversion",
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
[project.scripts]
|
|
22
|
+
audiototext-optimize = "audiototext_optimizer.cli:main"
|
|
23
|
+
|
|
24
|
+
[project.urls]
|
|
25
|
+
"Homepage" = "https://freeaudiototext.com"
|
|
26
|
+
"Documentation" = "https://freeaudiototext.com"
|
|
27
|
+
"Repository" = "https://github.com/double2dev/audiototext"
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import argparse
|
|
2
|
+
import subprocess
|
|
3
|
+
import sys
|
|
4
|
+
import os
|
|
5
|
+
|
|
6
|
+
def check_ffmpeg():
|
|
7
|
+
try:
|
|
8
|
+
subprocess.run(["ffmpeg", "-version"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, check=True)
|
|
9
|
+
return True
|
|
10
|
+
except FileNotFoundError:
|
|
11
|
+
return False
|
|
12
|
+
|
|
13
|
+
def optimize_audio(input_file, output_file):
|
|
14
|
+
if not check_ffmpeg():
|
|
15
|
+
print("Error: ffmpeg is not installed. Please install ffmpeg to use this tool.")
|
|
16
|
+
sys.exit(1)
|
|
17
|
+
|
|
18
|
+
print(f"Optimizing {input_file} for Speech-to-Text transcription...")
|
|
19
|
+
# Convert to 16kHz, mono, 64k bitrate MP3
|
|
20
|
+
command = [
|
|
21
|
+
"ffmpeg",
|
|
22
|
+
"-i", input_file,
|
|
23
|
+
"-ar", "16000",
|
|
24
|
+
"-ac", "1",
|
|
25
|
+
"-b:a", "64k",
|
|
26
|
+
"-y",
|
|
27
|
+
output_file
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
try:
|
|
31
|
+
subprocess.run(command, check=True)
|
|
32
|
+
print(f"\nSuccess! Optimized audio saved to: {output_file}")
|
|
33
|
+
print("You can now upload this file to https://freeaudiototext.com for fast, free transcription.")
|
|
34
|
+
except subprocess.CalledProcessError as e:
|
|
35
|
+
print(f"Error optimizing audio: {e}")
|
|
36
|
+
sys.exit(1)
|
|
37
|
+
|
|
38
|
+
def main():
|
|
39
|
+
parser = argparse.ArgumentParser(description="Optimize audio files for FreeAudioToText transcription.")
|
|
40
|
+
parser.add_argument("input", help="Path to the input audio/video file")
|
|
41
|
+
parser.add_argument("-o", "--output", help="Path to the output file (default: input_optimized.mp3)")
|
|
42
|
+
|
|
43
|
+
args = parser.parse_args()
|
|
44
|
+
|
|
45
|
+
if not os.path.exists(args.input):
|
|
46
|
+
print(f"Error: Input file '{args.input}' not found.")
|
|
47
|
+
sys.exit(1)
|
|
48
|
+
|
|
49
|
+
output = args.output
|
|
50
|
+
if not output:
|
|
51
|
+
base, _ = os.path.splitext(args.input)
|
|
52
|
+
output = f"{base}_optimized.mp3"
|
|
53
|
+
|
|
54
|
+
optimize_audio(args.input, output)
|
|
55
|
+
|
|
56
|
+
if __name__ == "__main__":
|
|
57
|
+
main()
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: audiototext-optimizer
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A lightweight CLI tool to optimize audio and video files for AI Speech-to-Text transcription.
|
|
5
|
+
Author-email: FreeAudioToText Developer <support@freeaudiototext.com>
|
|
6
|
+
Project-URL: Homepage, https://freeaudiototext.com
|
|
7
|
+
Project-URL: Documentation, https://freeaudiototext.com
|
|
8
|
+
Project-URL: Repository, https://github.com/double2dev/audiototext
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Classifier: Topic :: Multimedia :: Sound/Audio :: Conversion
|
|
13
|
+
Requires-Python: >=3.7
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
|
|
16
|
+
# AudioToText Optimizer
|
|
17
|
+
|
|
18
|
+
A lightweight, local command-line tool designed to prepare and compress audio/video files for fast, highly accurate AI Speech-to-Text transcription.
|
|
19
|
+
|
|
20
|
+
This tool is created and maintained by [FreeAudioToText.com](https://freeaudiototext.com).
|
|
21
|
+
|
|
22
|
+
## Why use this tool?
|
|
23
|
+
|
|
24
|
+
Most modern AI transcription models (like Whisper) downsample audio to 16kHz mono before processing. Uploading a massive 4K video file or a 320kbps stereo MP3 to a transcription service just wastes bandwidth and upload time.
|
|
25
|
+
|
|
26
|
+
`audiototext-optimizer` uses `ffmpeg` locally to perfectly format your media for transcription (16kHz, mono, 64k bitrate), reducing file sizes by up to 90% without losing any vocal clarity.
|
|
27
|
+
|
|
28
|
+
## Installation
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
pip install audiototext-optimizer
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
*Note: You must have [ffmpeg](https://ffmpeg.org/) installed on your system.*
|
|
35
|
+
|
|
36
|
+
## Usage
|
|
37
|
+
|
|
38
|
+
Simply pass your audio or video file to the CLI:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
audiototext-optimize my_podcast.wav
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
This will automatically create a highly compressed `my_podcast_optimized.mp3` file.
|
|
45
|
+
|
|
46
|
+
You can then upload this optimized file directly to [FreeAudioToText](https://freeaudiototext.com) for secure, privacy-first transcription.
|
|
47
|
+
|
|
48
|
+
## Links
|
|
49
|
+
- [Official Website](https://freeaudiototext.com)
|
|
50
|
+
- [Terms of Service](https://freeaudiototext.com/terms)
|
|
51
|
+
- [Privacy Policy](https://freeaudiototext.com/privacy)
|
|
52
|
+
- [GitHub Repository](https://github.com/double2dev/audiototext)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
pyproject.toml
|
|
3
|
+
src/audiototext_optimizer/__init__.py
|
|
4
|
+
src/audiototext_optimizer/cli.py
|
|
5
|
+
src/audiototext_optimizer.egg-info/PKG-INFO
|
|
6
|
+
src/audiototext_optimizer.egg-info/SOURCES.txt
|
|
7
|
+
src/audiototext_optimizer.egg-info/dependency_links.txt
|
|
8
|
+
src/audiototext_optimizer.egg-info/entry_points.txt
|
|
9
|
+
src/audiototext_optimizer.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
audiototext_optimizer
|