Skip to main content

gstwhisper/
lib.rs

1// Copyright (C) 2026 Mathieu Duponchelle <mathieu@centricular.com>
2//
3// This Source Code Form is subject to the terms of the Mozilla Public License, v2.0.
4// If a copy of the MPL was not distributed with this file, You can obtain one at
5// <https://mozilla.org/MPL/2.0/>.
6//
7// SPDX-License-Identifier: MPL-2.0
8#![allow(clippy::non_send_fields_in_send_ty, unused_doc_comments)]
9#![recursion_limit = "128"]
10
11use gst::glib;
12/**
13 * plugin-whisper:
14 *
15 * Since: plugins-rs-0.15.0
16 */
17mod transcriber;
18
19fn plugin_init(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
20    transcriber::register(plugin)?;
21
22    Ok(())
23}
24
25gst::plugin_define!(
26    whisper,
27    env!("CARGO_PKG_DESCRIPTION"),
28    plugin_init,
29    concat!(env!("CARGO_PKG_VERSION"), "-", env!("COMMIT_ID")),
30    "MPL",
31    env!("CARGO_PKG_NAME"),
32    env!("CARGO_PKG_NAME"),
33    env!("CARGO_PKG_REPOSITORY"),
34    env!("BUILD_REL_DATE")
35);