Crate silence_core

Source
Expand description

A crate to make voip services easier to create. Silence-core provides core functions, helpers and type definitions for a voip service to work. If you just want a quick and easy way to set up a voip service, you should use silence instead as it provides a more complete (end-user friendly) approach.

This crate provides 2 main functionalities:

  • Type definitions: This crate provides Type definitions and traits in order to make the handling of packets easier.

  • APIs for performing audio I/O: The crate provides multiple ways to handle audio I/O on multiple platforms efficiently.

  • APIs for receiving image input: The crate provides ways to utilize the user’s webcam to send images.

  • APIs for encoding in certain codecs: The crate provides ways to encode the raw auudio samples with opus. It also provides ways to encode raw images with the AV1 codec.

A complete version of the documentation is available at here.

Modules§

avif
Provides AV1 encoding for images. AV1 (AOMedia Video 1) is a high efficiency video codec. It was originally made to transmit video calls.
cam
Offers the ability to receive camera input.
io
Traits, functions and type definitions for functioning audio I/O. The I/O feature provides types and functions for recording and playbacking audio aswell as handling the data.
opus
This feature allows opus encoding and decoding for efficient byte transfer, while not sacirifising audio quality.