Crates.io | podcast2text |
lib.rs | podcast2text |
version | 0.0.3 |
source | src |
created_at | 2022-11-21 11:20:49.262872 |
updated_at | 2022-11-21 22:04:44.246577 |
description | Cli tool for downloading episodes from rss and running transcription |
homepage | |
repository | https://github.com/flakm/jupiter-search |
max_upload_size | |
id | 720068 |
size | 63,809 |
A showcase for indexing jupiter network podcasts using meilisearch. This repository is build in order to provide possible solution to following problems:
DISCLAIMER!
Warning! This is a work in progress version to showcase how indexing/transcription might work.
Project contains two main modules:
podcast2text
a cli tool for downloading RSS feed and transcribing podcast episodes
search-load
a cli tool for loading obtained transcriptions to
instance of meilisearch
To build you would need following packages on your system:
There is a nix flake configured to ship build dependencies
just run direnv allow
and run:
git submodule update --init --recursive
cargo build --release
To appease the gods of good taste please add following pre commit hook:
git config --local core.hooksPath .githooks
mkdir models
# this might be one of:
# "tiny.en" "tiny" "base.en" "base" "small.en" "small" "medium.en" "medium" "large"
model=medium.en
curl --output models/model.bin https://ggml.ggerganov.com/ggml-model-whisper-$model.bin
# get information about the cli
docker run flakm/podcast2text --help
docker run \
-v $PWD/models:/data/models \
flakm/podcast2text \
rss https://feed.jupiter.zone/allshows
docker pull getmeili/meilisearch:v0.29
docker run -it --rm \
-p 7700:7700 \
-e MEILI_MASTER_KEY='MASTER_KEY'\
-v $(pwd)/meili_data:/meili_data \
getmeili/meilisearch:v0.29 \
meilisearch --env="development"
mkdir models
# this might be one of:
# "tiny.en" "tiny" "base.en" "base" "small.en" "small" "medium.en" "medium" "large"
model=medium.en
curl --output models/ggml-$model.bin https://ggml.ggerganov.com/ggml-model-whisper-$model.bin
curl https://feed.jupiter.zone/link/19057/15745245/55bb5263-04be-43a3-8b92-678072a9cfc8.mp3 -L -o action.mp3
Install ffmpeg
and put it on PATH
variable.
Run the inference example
cargo run --release --example=get_transcript -- models/ggml-medium.en.bin action_short.wav | tee output.txt