Metadata-Version: 2.1
Name: pytgvoip
Version: 0.0.7
Summary: Telegram VoIP Library for Python
Home-page: https://github.com/bakatrouble/pytgvoip
Author: bakatrouble
Author-email: bakatrouble@gmail.com
License: LGPLv3+
Project-URL: Tracker, https://github.com/bakatrouble/pytgvoip/issues
Project-URL: Community, https:/t.me/pytgvoip
Project-URL: Source, https://github.com/bakatrouble/pytgvoip
Description: # pytgvoip
         
        [![Read the Docs](https://img.shields.io/readthedocs/pytgvoip.svg)](https://pytgvoip.rtfd.io) [![PyPI](https://img.shields.io/pypi/v/pytgvoip.svg?style=flat)](https://pypi.org/project/pytgvoip/) [![AppVeyor (windows wheels)](https://img.shields.io/appveyor/ci/bakatrouble/pylibtgvoip.svg?label=windows%20wheels%20build&style=flat)](https://ci.appveyor.com/project/bakatrouble/pylibtgvoip) ![LGPLv3+](https://img.shields.io/pypi/l/pytgvoip.svg?style=flat)
         
        **Telegram VoIP Library for Python**
        
        [Community](https://t.me/pytgvoip) | [Documentation](https://pytgvoip.rtfd.io)
        
        **PytgVoIP** is a [Telegram](https://telegram.org/) VoIP library written in Python and C++.
        
        It uses [libtgvoip](https://github.com/grishka/libtgvoip) (a library used in official clients) 
        for voice encoding and transmission, and [pybind11](https://github.com/pybind/pybind11) for simple 
        generation of Python extension written in C++.
        
        It is targeted to MTProto client library developers, detailed usage guide is available [here](https://pytgvoip.readthedocs.io/en/latest/guides/usage.html).
        
        An example of usage with [Pyrogram](https://github.com/pyrogram/pyrogram) is available [here](https://github.com/bakatrouble/pytgvoip_pyrogram) ([`pytgvoip_pyrogram` in PyPI](https://pypi.org/project/pytgvoip_pyrogram/)), could be used as reference.
        
        Hopefully this module support will be [integrated in Pyrogram itself](https://github.com/pyrogram/pyrogram/pull/218), also [@cher-nov](https://github.com/cher-nov) has plans to integrate it into [Telethon](https://github.com/LonamiWebs/Telethon) as well
        
        ## Features
        * Python callbacks for sending and receiving audio stream frames allow flexible control
        * Pre-built Windows wheels in PyPI
        
        ## Requirements
        * Python 3.5 or higher
        
        Linux, MacOS: (use binary wheels from PyPI for Windows)
        * [libtgvoip](https://pytgvoip.readthedocs.io/en/latest/guides/libtgvoip.html)
        * CMake, C++11-compatible compiler, Python headers
        
        ## Installing
        ```pip3 install pytgvoip```
        
        Install [`pytgvoip_pyrogram`](https://github.com/bakatrouble/pytgvoip_pyrogram) to use this module with Pyrogram.
        
        
        ## Encoding audio streams
        Streams consumed by `libtgvoip` should be encoded in 16-bit signed PCM audio.
        ```bash
        $ ffmpeg -i input.mp3 -f s16le -ac 1 -ar 48000 -acodec pcm_s16le input.raw  # encode
        $ ffmpeg -f s16le -ac 1 -ar 48000 -acodec pcm_s16le -i output.raw output.mp3  # decode
        ```
        
        ## Copyright & License
        * Copyright (C) 2019 [bakatrouble](https://github.com/bakatrouble)
        * Licensed under the terms of the [GNU Lesser General Public License v3 or later (LGPLv3+)](COPYING.lesser)
        
Keywords: telegram messenger voip library python
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: Implementation
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: C++
Classifier: Topic :: Internet
Classifier: Topic :: Communications
Classifier: Topic :: Communications :: Internet Phone
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Description-Content-Type: text/markdown
