mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-05-28 13:18:34 +00:00
511ee766df
Now that migration to AWS SDK is complete, rename directory and references to aws/AWS SDK. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/759>
46 lines
1.3 KiB
Rust
46 lines
1.3 KiB
Rust
// Copyright (C) 2020 Mathieu Duponchelle <mathieu@centricular.com>
|
|
//
|
|
// This Source Code Form is subject to the terms of the Mozilla Public License, v2.0.
|
|
// If a copy of the MPL was not distributed with this file, You can obtain one at
|
|
// <https://mozilla.org/MPL/2.0/>.
|
|
//
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
use gst::glib;
|
|
use gst::prelude::*;
|
|
|
|
mod imp;
|
|
mod packet;
|
|
|
|
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy, glib::Enum)]
|
|
#[repr(u32)]
|
|
#[enum_type(name = "GstAwsTranscriberResultStability")]
|
|
#[non_exhaustive]
|
|
pub enum AwsTranscriberResultStability {
|
|
#[enum_value(name = "High: stabilize results as fast as possible", nick = "high")]
|
|
High = 0,
|
|
#[enum_value(
|
|
name = "Medium: balance between stability and accuracy",
|
|
nick = "medium"
|
|
)]
|
|
Medium = 1,
|
|
#[enum_value(
|
|
name = "Low: relatively less stable partial transcription results with higher accuracy",
|
|
nick = "low"
|
|
)]
|
|
Low = 2,
|
|
}
|
|
|
|
glib::wrapper! {
|
|
pub struct Transcriber(ObjectSubclass<imp::Transcriber>) @extends gst::Element, gst::Object;
|
|
}
|
|
|
|
pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
|
|
gst::Element::register(
|
|
Some(plugin),
|
|
"awstranscriber",
|
|
gst::Rank::None,
|
|
Transcriber::static_type(),
|
|
)
|
|
}
|