EnglishFrenchSpanish

OnWorks favicon

toast - Online in the Cloud

Run toast in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command toast that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


toast — GSM 06.10 lossy sound compression

SYNOPSIS


toast [ -cdfpvhualsFC ] [ filename... ]

untoast [ -cfpvhuaslF ] [ filename... ]

tcat [ -vhuaslF ] [ filename... ]

DESCRIPTION


Toast compresses the sound files given on its command line. Each file is replaced by a
file with the extension .gsm . If no files are specified, the compression is applied to
the standard input, and its result is written to standard output.

Toasted files can be restored to something not quite unlike their original form by running
toast -d , or untoast , on the .gsm-files or standard input.

The program tcat (the same as running untoast -c ) uncompresses its input on standard
output, but leaves the compressed .gsm-files alone.

When files are compressed or uncompressed into other files, the ownership (if run by
root), modes, accessed and modified times are maintained between both versions.

OPTIONS


-c (cat) Write to the standard output; no files are changed.

-d (decode) Decode, rather than encode, the files.

-f (force) Force replacement of output files if they exist. If -f is omitted and
toast (or untoast) is run interactively from a terminal, the user is prompted as to
whether the file should be replaced.

-p (precious) Do not delete the source files. Source files are implicitly left alone
whenever -c is specified or tcat is run.

-C (LTP cut-off) Ignore most sample values when calculating the GSM long-term
correlation lag during encoding. (The multiplications that do this are a
bottleneck of the algorithm.) The resulting encoding process will not produce
exactly the same results as GSM 06.10 would, but remains close enough to be
compatible.
The -C option applies only to the encoder and is silently ignored by the decoder.

-F (fast) On systems with a floating point processor, but without a multiplication
instruction, -F sacrifices standard conformance to performance and nearly doubles
the speed of the algorithm.
The resulting encoding and decoding process will not produce exactly the same
results as GSM 06.10 would, but remains close enough to be compatible.
The default is standard-conforming operation.

-v (version) outputs the version of toast (or untoast or tcat) to stdout and exits.

-h (help) prints a short overview of the options.

Toast, untoast and tcat try to guess the appropriate audio data format from the file
suffix. Command line options can also specify a format to be used for all files.
The following formats are supported:

-u (μU-law) 8 kHz, 8 bit μU-law encoding (file suffix .u)

-a (A-law) 8 kHz, 8 bit A-law encoding (file suffix .A)

-s (Sun audio) 8 kHz, 8 bit μU-law encoding with audio header (file suffix .au)

-l (linear) 8 kHz, 16 bit signed linear encoding in host byte order with 13
significant bits (file suffix .l)

In absence of options or suffixes to specify a format, μU-law encoding as forced by -u is
assumed.

PECULIARITIES


A four bit magic number is prefixed to each 32 1/2-byte GSM frame, mainly because 32
1/2-bytes are rather clumsy to handle.

WARNING


The compression algorithm used is a lossy compression algorithm devised especially for
speech; on no account should it be used for text, pictures or any other non-speech-data
you consider valuable.

Use toast online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Phaser
    Phaser
    Phaser is a fast, free, and fun open
    source HTML5 game framework that offers
    WebGL and Canvas rendering across
    desktop and mobile web browsers. Games
    can be co...
    Download Phaser
  • 2
    VASSAL Engine
    VASSAL Engine
    VASSAL is a game engine for creating
    electronic versions of traditional board
    and card games. It provides support for
    game piece rendering and interaction,
    and...
    Download VASSAL Engine
  • 3
    OpenPDF - Fork of iText
    OpenPDF - Fork of iText
    OpenPDF is a Java library for creating
    and editing PDF files with a LGPL and
    MPL open source license. OpenPDF is the
    LGPL/MPL open source successor of iText,
    a...
    Download OpenPDF - Fork of iText
  • 4
    SAGA GIS
    SAGA GIS
    SAGA - System for Automated
    Geoscientific Analyses - is a Geographic
    Information System (GIS) software with
    immense capabilities for geodata
    processing and ana...
    Download SAGA GIS
  • 5
    Toolbox for Java/JTOpen
    Toolbox for Java/JTOpen
    The IBM Toolbox for Java / JTOpen is a
    library of Java classes supporting the
    client/server and internet programming
    models to a system running OS/400,
    i5/OS, o...
    Download Toolbox for Java/JTOpen
  • 6
    D3.js
    D3.js
    D3.js (or D3 for Data-Driven Documents)
    is a JavaScript library that allows you
    to produce dynamic, interactive data
    visualizations in web browsers. With D3
    you...
    Download D3.js
  • More »

Linux commands

Ad