{"id":22767288,"url":"https://github.com/marvin-vw/python-ollama-local","last_synced_at":"2026-03-14T06:06:57.762Z","repository":{"id":215442967,"uuid":"738935808","full_name":"Marvin-VW/python-ollama-local","owner":"Marvin-VW","description":"This Python script enables hands-free interaction with a local Llama2 language model. It captures voice commands from the microphone, sends them to Llama2 for natural language processing, and converts the model's textual responses into speech.","archived":false,"fork":false,"pushed_at":"2024-01-04T12:49:52.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-18T22:05:04.667Z","etag":null,"topics":["edge-tts","langchain","llama2","ollama","python"],"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/Marvin-VW.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":"2024-01-04T11:45:41.000Z","updated_at":"2024-08-31T08:28:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"91ad3d22-aeca-4fb6-8b25-bee96a0b99e4","html_url":"https://github.com/Marvin-VW/python-ollama-local","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"52416da4a58724fa7c31da1fb75fbb61cddb24fd"},"previous_names":["marvin-vw/python-ollama-local"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marvin-VW%2Fpython-ollama-local","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marvin-VW%2Fpython-ollama-local/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marvin-VW%2Fpython-ollama-local/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marvin-VW%2Fpython-ollama-local/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Marvin-VW","download_url":"https://codeload.github.com/Marvin-VW/python-ollama-local/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248986220,"owners_count":21194022,"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":["edge-tts","langchain","llama2","ollama","python"],"created_at":"2024-12-11T13:18:15.754Z","updated_at":"2026-03-14T06:06:55.679Z","avatar_url":"https://github.com/Marvin-VW.png","language":"Python","readme":"# python-ollama-local\n\n## Overview\n\nThis project enables hands-free voice interactions through a local installation of the Llama2 language model. Users can provide voice commands, which are then processed by Llama2 for natural language understanding. The textual responses are converted into speech using the \"edge-tts\" tool, and the generated audio is played back sequentially.\n\n## Requirements\n\nEnsure you have the following Python libraries and tools installed:\n\n- [ollama](https://github.com/jmorganca/ollama)\n- [gtts](https://pypi.org/project/gTTS/): `pip install gtts`\n- [pygame](https://pypi.org/project/pygame/): `pip install pygame`\n- [langchain](https://pypi.org/project/langchain/): `pip install langchain`\n- [speech_recognition](https://pypi.org/project/SpeechRecognition/): `pip install SpeechRecognition`\n\n## Usage\n\n1. **Clone the Repository:**\n   ```\n   git clone https://github.com/Marvin-VW/python-ollama-local/blob/main/main.py\n   cd voice-interaction-project\n   ```\n\n2. **Install Dependencies:**\n   ```\n   pip install -r requirements.txt\n   ```\n\n3. **Run the Script:**\n   ```\n   python voice_interaction.py\n   ```\n\n## Features\n\n- Captures voice commands from the microphone.\n- Utilizes local Llama2 for natural language processing.\n- Converts textual responses to speech using \"edge-tts.\"\n- Sequential playback of generated audio files.\n\n## Contribution\n\nFeel free to contribute to the project by opening issues or submitting pull requests.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarvin-vw%2Fpython-ollama-local","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarvin-vw%2Fpython-ollama-local","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarvin-vw%2Fpython-ollama-local/lists"}