{"id":47686612,"url":"https://github.com/wavekat/wavekat-core","last_synced_at":"2026-05-14T06:08:56.723Z","repository":{"id":347249565,"uuid":"1193319491","full_name":"wavekat/wavekat-core","owner":"wavekat","description":"Shared types for the WaveKat audio processing ecosystem. Common audio primitives (AudioFrame, IntoSamples) used across wavekat-vad, wavekat-turn, and other WaveKat crates.","archived":false,"fork":false,"pushed_at":"2026-03-27T09:37:19.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-27T17:42:02.076Z","etag":null,"topics":["audio","audio-processing","rust","speech","telephony","voice","voice-ai","wavekat"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/wavekat-core","language":"Rust","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wavekat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-27T05:09:23.000Z","updated_at":"2026-03-27T09:36:51.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/wavekat/wavekat-core","commit_stats":null,"previous_names":["wavekat/wavekat-core"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/wavekat/wavekat-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavekat%2Fwavekat-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavekat%2Fwavekat-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavekat%2Fwavekat-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavekat%2Fwavekat-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wavekat","download_url":"https://codeload.github.com/wavekat/wavekat-core/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wavekat%2Fwavekat-core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31308447,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","audio-processing","rust","speech","telephony","voice","voice-ai","wavekat"],"created_at":"2026-04-02T14:52:46.870Z","updated_at":"2026-04-07T00:03:56.470Z","avatar_url":"https://github.com/wavekat.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/wavekat/wavekat-core\"\u003e\n    \u003cimg src=\"https://github.com/wavekat/wavekat-brand/raw/main/assets/banners/wavekat-core-narrow.svg\" alt=\"WaveKat Core\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n[![Crates.io](https://img.shields.io/crates/v/wavekat-core.svg)](https://crates.io/crates/wavekat-core)\n[![docs.rs](https://docs.rs/wavekat-core/badge.svg)](https://docs.rs/wavekat-core)\n[![codecov](https://codecov.io/gh/wavekat/wavekat-core/branch/main/graph/badge.svg)](https://codecov.io/gh/wavekat/wavekat-core)\n\nShared types for the WaveKat audio processing ecosystem.\n\n\u003e [!WARNING]\n\u003e Early development. API may change.\n\n## What's Inside\n\n| Type | Description |\n|------|-------------|\n| `AudioFrame` | Audio samples with sample rate, accepts `i16` and `f32` in slice, Vec, or array form |\n| `IntoSamples` | Trait for transparent sample format conversion |\n\n## Quick Start\n\n```sh\ncargo add wavekat-core\n```\n\n```rust\nuse wavekat_core::AudioFrame;\n\n// From f32 — zero-copy (slice, \u0026Vec\u003cf32\u003e, or array)\nlet frame = AudioFrame::new(\u0026f32_samples, 16000);\n\n// From i16 — normalizes to f32 [-1.0, 1.0] automatically\nlet frame = AudioFrame::new(\u0026i16_samples, 16000);\n\n// From an owned Vec — zero-copy, produces AudioFrame\u003c'static\u003e\nlet frame = AudioFrame::from_vec(vec![0.0f32; 160], 16000);\n\n// Inspect the frame\nlet samples: \u0026[f32] = frame.samples();\nlet rate: u32 = frame.sample_rate();\nlet n: usize = frame.len();\nlet empty: bool = frame.is_empty();\nlet secs: f64 = frame.duration_secs();\n\n// Convert a borrowed frame to owned\nlet owned: AudioFrame\u003c'static\u003e = frame.into_owned();\n```\n\n## Audio Format Standard\n\nThe WaveKat ecosystem standardizes on **16 kHz, mono, f32 `[-1.0, 1.0]`**.\n`AudioFrame` handles the conversion so downstream crates don't have to.\n\n```\nYour audio (any format)\n        |\n        v\n   AudioFrame::new(samples, sample_rate)\n        |\n        +---\u003e wavekat-vad\n        +---\u003e wavekat-turn\n        +---\u003e wavekat-asr (future)\n```\n\n## Optional Features\n\n### `wav`\n\nAdds WAV file I/O via [`hound`](https://crates.io/crates/hound).\n\n```sh\ncargo add wavekat-core --features wav\n```\n\n```rust\nuse wavekat_core::AudioFrame;\n\n// Read a WAV file (f32 or i16, normalized automatically)\nlet frame = AudioFrame::from_wav(\"input.wav\")?;\nprintln!(\"{} Hz, {} samples\", frame.sample_rate(), frame.len());\n\n// Write a frame to a WAV file (mono f32 PCM)\nframe.write_wav(\"output.wav\")?;\n```\n\n## License\n\nLicensed under [Apache 2.0](LICENSE).\n\nCopyright 2026 WaveKat.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwavekat%2Fwavekat-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwavekat%2Fwavekat-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwavekat%2Fwavekat-core/lists"}