DeepZeka Clear Voice Python SDK
Clear Voice REST API için Python istemcisi. Ses dosyalarını yükler, asenkron işleri takip eder ve temizlenmiş sonucu indirir.
- PyPI paketi:
deepzeka-clearvoice - Python modülü:
clearvoice - Python 3.9 ve üzeri sürümlerle uyumludur.
Kurulum
pip install deepzeka-clearvoice
Hızlı başlangıç
from clearvoice import ClearVoice
client = ClearVoice("cv_live_your_api_key_here")
job = client.create_job(
"kayit.wav",
model="V3",
enhance_speech=True,
normalize_volume=True,
)
print(job.id, job.status)
completed_job = client.wait_for_job(job.id)
output = client.download_result(completed_job.id, "temiz-kayit.mp3")
print(output)
Tüm akış tek çağrıyla da çalıştırılabilir:
from clearvoice import ClearVoice, Model
with ClearVoice("cv_live_your_api_key_here") as client:
output = client.process(
"kayit.wav",
"temiz-kayit.wav",
model=Model.V4,
format="wav",
timeout=600,
)
Anahtar kod içinde tutulmak istenmiyorsa CLEARVOICE_API_KEY ortam değişkenine
yazılabilir ve ClearVoice() parametresiz oluşturulabilir.
Kullanım ve bakiye
usage = client.get_usage()
print(usage.to_dict())
Webhook doğrulama
İmzayı JSON'a dönüştürülmemiş özgün istek gövdesiyle doğrulayın:
from clearvoice import verify_webhook_signature
valid = verify_webhook_signature(
raw_request_body,
request.headers["X-ClearVoice-Signature"],
"whsec_your_webhook_signing_secret",
)
Hata yönetimi
from clearvoice import AuthenticationError, ClearVoice, RateLimitError
try:
client = ClearVoice("cv_live_...")
job = client.create_job("kayit.wav")
except AuthenticationError:
print("API anahtarı geçersiz")
except RateLimitError:
print("İstek limiti aşıldı")
Geliştirme
Kaynak kodu klonlayıp geliştirme bağımlılıklarıyla kurmak için:
git clone https://github.com/Eminkorkut/deepzeka-clearvoice.git
cd deepzeka-clearvoice
python -m pip install -e ".[dev]"
pytest
ruff check .
python -m build
Destek
API veya SDK ile ilgili sorular için destek@clearvoice.com.tr adresine ulaşabilirsiniz.
Geliştirici
Muhammed Emin KORKUT
Lisans
Bu proje MIT Lisansı ile lisanslanmıştır.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file deepzeka_clearvoice-0.1.1.tar.gz.
File metadata
- Download URL: deepzeka_clearvoice-0.1.1.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87d44294318a28f9c100e1acfd6d6d1419f32112bd1edd1f67dd9af40e483c42
|
|
| MD5 |
5d9e5142b03e618a87bdcb4392835cfe
|
|
| BLAKE2b-256 |
246fc349b1474678ef12a0945250d8b9536d5f24c89a118189a221e264e491bd
|
Provenance
The following attestation bundles were made for deepzeka_clearvoice-0.1.1.tar.gz:
Publisher:
release.yml on Eminkorkut/deepzeka-clearvoice
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
deepzeka_clearvoice-0.1.1.tar.gz -
Subject digest:
87d44294318a28f9c100e1acfd6d6d1419f32112bd1edd1f67dd9af40e483c42 - Sigstore transparency entry: 2685780481
- Sigstore integration time:
-
Permalink:
Eminkorkut/deepzeka-clearvoice@085021ed553077dfef696341b11de927c7b36892 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Eminkorkut
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@085021ed553077dfef696341b11de927c7b36892 -
Trigger Event:
release
-
Statement type:
File details
Details for the file deepzeka_clearvoice-0.1.1-py3-none-any.whl.
File metadata
- Download URL: deepzeka_clearvoice-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
412ba2f80a0d41d847352de1040c98ebd3b723d3aa217cce81a2f9e42d38b8cc
|
|
| MD5 |
4096532be3eb3acc3e87871aaa093bd1
|
|
| BLAKE2b-256 |
7992fa060330f2887facfa7e03ff9c3231f8087ab943ac5622d6001837d7f00d
|
Provenance
The following attestation bundles were made for deepzeka_clearvoice-0.1.1-py3-none-any.whl:
Publisher:
release.yml on Eminkorkut/deepzeka-clearvoice
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
deepzeka_clearvoice-0.1.1-py3-none-any.whl -
Subject digest:
412ba2f80a0d41d847352de1040c98ebd3b723d3aa217cce81a2f9e42d38b8cc - Sigstore transparency entry: 2685780563
- Sigstore integration time:
-
Permalink:
Eminkorkut/deepzeka-clearvoice@085021ed553077dfef696341b11de927c7b36892 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Eminkorkut
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@085021ed553077dfef696341b11de927c7b36892 -
Trigger Event:
release
-
Statement type: