Audio Searcher
このコードは音声ファイル内の言葉を検索するためのものです。
例えば授業や会議等で「課題のことについてだけ聞き返したいなっ」という時にこれを使うと見つけられちゃいます⭐️
機能的にはGoogleの音声認識サービスを使ってテキストに変換しています
How to use
下記は私の環境(apple M1,Python 3.9.10)で実際に動かしたコードです^^*
from audio_searcher.audio_search import AudioSearcher
##階層は自分で調節してね!!
if __name__ == "__main__":
audio_file = "sample_audio.mp3" # 音声ファイルへのパスを指定してね
keyword = "見て" # 検索したいキーワードを指定してね
searcher = AudioSearcher(language='ja-JP') # 使用する言語を指定します
transcribed_text = searcher.transcribe(audio_file)
if "Could not" not in transcribed_text:
print("Transcribed Text:", transcribed_text)
occurrences = searcher.search_keyword(transcribed_text, keyword)
if occurrences:
print(f"Keyword '{keyword}' found at positions: {occurrences}")
else:
print(f"Keyword '{keyword}' not found in the text.")
else:
print(transcribed_text)
Installation
使ってみてね
You can install the package using pip:
pip install audio_searcher
Metadata
Release files for audio-searcher 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| audio_searcher-0.1.3.tar.gz | 3.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| audio_searcher-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.4 kB
Release files / audio_searcher-0.1.3.tar.gz
| Download URL | audio_searcher-0.1.3.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b968eef0fe9ac84d7ff577e0154eec39e9ac132f26b8bccd4547500ef63b9a1
|
|
BLAKE2b-256 checksum How to use checksums |
88411f4dc75b9145cd41f04684f10986a7e60668b3996cf5f2006fba00b211e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.10
|
Release files / audio_searcher-0.1.3-py3-none-any.whl
| Download URL | audio_searcher-0.1.3-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
af7aa4f945f8da75e2901ecf15929bf743718931411cd6261ce39318a19635a9
|
|
BLAKE2b-256 checksum How to use checksums |
807343016bbcdc69999f2f5cb3be29e73ceae46e3b748d485c2c6ead6f4e06f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.10
|
Security for audio-searcher 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.