{"id":26742402,"url":"https://github.com/jim-by/audio-to-text-python","last_synced_at":"2025-08-27T07:16:02.832Z","repository":{"id":284703558,"uuid":"955788512","full_name":"Jim-by/audio-to-text-python","owner":"Jim-by","description":"This Python script is designed to automatically process MP3 audio files and convert them to text format (.txt).","archived":false,"fork":false,"pushed_at":"2025-03-27T08:10:22.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T08:40:53.781Z","etag":null,"topics":["audio-processing","data-science","python","speech-recognition"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jim-by.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-27T07:43:39.000Z","updated_at":"2025-03-27T08:14:16.000Z","dependencies_parsed_at":"2025-03-27T08:51:42.284Z","dependency_job_id":null,"html_url":"https://github.com/Jim-by/audio-to-text-python","commit_stats":null,"previous_names":["jim-by/audio-to-text-python"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jim-by%2Faudio-to-text-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jim-by%2Faudio-to-text-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jim-by%2Faudio-to-text-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jim-by%2Faudio-to-text-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jim-by","download_url":"https://codeload.github.com/Jim-by/audio-to-text-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245978283,"owners_count":20703678,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio-processing","data-science","python","speech-recognition"],"created_at":"2025-03-28T06:17:47.798Z","updated_at":"2025-03-28T06:17:48.426Z","avatar_url":"https://github.com/Jim-by.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## MP3 to Text Converter with Dialogue Role and Sentiment Analysis\n\n## Project description\n\nThis Python script is designed to automatically process MP3 audio files and convert them to text format (.txt). It performs the following actions:\n\n1.  **Transcribe audio:** Uses OpenAI's Whisper model to recognize speech from audio files.\n2.  **Dialog segmentation:** Applies inaSpeechSegmenter to divide audio into speech segments (male/female voice) and non-speech segments.\n3.  **Role classification:** Uses RuBERT to determine the role of the speaker in a dialog (customer or salesperson).\n4.  **Tone Analysis:** Applies TextBlob to analyze the tone of a text (polarity and subjectivity).\n5.  **Saving results:** Transcribing, role and tonality analysis results are saved to text files (.txt) for each input MP3 file.\n\nThe script is designed to process dialog recordings, such as telephone conversations, for further analysis and text processing.\n\n### Installation\n### Pre-requisites\n* **Python 3.7 or higher** (Python 3.8+ is recommended)\n* **FFmpeg** must be installed and added to the system PATH variable (required to convert MP3 to WAV). Instructions for installing FFmpeg depend on your operating system.\n\n### Installing the Python libraries\n\nAll dependencies must be installed before running the script. It is recommended to use a virtual environment (`venv`) to isolate the project dependencies.\n\n1.**Create a virtual environment (optional, but recommended):**\n\n    \n```bash\n    python -m venv venv\n```\n\n2.**Activate the virtual environment:**\n\n*    Windows:\n\n```bash\n    venv\\Scripts\\activate\n```\n\n*    Linux/macOS:\n```bash\n    source venv/bin/activate\n```\n\n3.**Install the required libraries from the ``requirements.txt`` file:** \n\n```bash \nsource venv/bin/activate \n```\n\n```bash\npip install -r requirements.txt\n```\n\n(The `requirements.txt` file must be in the root folder of the project. Instructions for creating the `requirements.txt` file are below).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjim-by%2Faudio-to-text-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjim-by%2Faudio-to-text-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjim-by%2Faudio-to-text-python/lists"}