Spaces:
Sleeping
title: APi English
emoji: π’
colorFrom: pink
colorTo: green
sdk: docker
python_version: '3.12'
app_file: app/main.py
app_port: 7860
short_description: English learning API
models:
- Qwen/Qwen2.5-1.5B-Instruct
- faster_whisper/faster-whisper-small-en
- hexgrad/Kokoro-82M
- allegro/BiDi-eng-pol
tags:
- nlp
- tts
- asr
- translation
license: mit
pinned: false
π’ APi English
APi English is a FastAPI-based API to help learners improve their English using NLP, Text-to-Speech, Automatic Speech Recognition, and Translation.
π Features
- NLP Chat: Emma, your friendly English teacher, provides natural replies, grammar corrections, and vocabulary tips.
- Text-to-Speech (TTS): Generates high-quality 24kHz WAV audio using the Kokoro neural TTS model with streaming inference.
- Automatic Speech Recognition (ASR): Transcribes user audio into text.
- Translation: Translate between English and Polish.
π€ Models and Licenses
This project uses several open-source AI models from Hugging Face.
Each model retains its original license as listed below:
π Speech Recognition
- Faster Whisper Small (English)
Efficient CPU/GPU implementation of OpenAI Whisper Small.
Base model: openai/whisper-small.en
Licensed under mit.
Implementation by Faster Whisper
π£οΈ Text-to-Speech (TTS)
- hexgrad/Kokoro-82M
Lightweight, high-quality neural Text-to-Speech model with streaming inference support.
Supports multiple voices and automatic language detection.
Licensed under the Apache License 2.0.
Developed by Hexgrad.
π¬ Natural Language Processing (Chat & Grammar)
- Qwen/Qwen2.5-1.5B-Instruct
Licensed under Apache License 2.0.
Developed by Qwen Team
π Translation
- Allegro/BiDi-eng-pol
Licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Developed by Allegro ML Research
βοΈ License Notice
This project integrates open-source models and fully complies with their respective licenses.
All rights to the models belong to their original creators.
The source code of this application is distributed separately under the license defined in this repository.
π References
1. Faster Whisper Small (English) β Systran
@misc{faster_whisper_small, title = {Faster Whisper Small English}, author = {Systran AI}, note = {CTranslate2-converted version of OpenAI Whisper Small for fast inference with faster_whisper}, url = {https://huggingface.co/Systran/faster-whisper-small.en}, year = {2024}, license = {MIT (conversion), original model Apache 2.0} }
2. Kokoro-82M β Hexgrad
@misc{kokoro82m, title = {Kokoro-82M: Lightweight Neural Text-to-Speech}, author = {Hexgrad}, year = {2024}, url = {https://huggingface.co/hexgrad/Kokoro-82M}, license = {Apache License 2.0} }
3. Qwen/Qwen2.5-1.5B-Instruct β Qwen Team
@misc{qwen2.5, title = {Qwen2.5: A Party of Foundation Models}, url = {https://qwenlm.github.io/blog/qwen2.5/}, author = {Qwen Team}, month = {September}, year = {2024} }
@article{qwen2, title={Qwen2 Technical Report}, author={An Yang and Baosong Yang and Binyuan Hui and Bo Zheng and Bowen Yu and Chang Zhou and Chengpeng Li and Chengyuan Li and Dayiheng Liu and Fei Huang and Guanting Dong and Haoran Wei and Huan Lin and Jialong Tang and Jialin Wang and Jian Yang and Jianhong Tu and Jianwei Zhang and Jianxin Ma and Jin Xu and Jingren Zhou and Jinze Bai and Jinzheng He and Junyang Lin and Kai Dang and Keming Lu and Keqin Chen and Kexin Yang and Mei Li and Mingfeng Xue and Na Ni and Pei Zhang and Peng Wang and Ru Peng and Rui Men and Ruize Gao and Runji Lin and Shijie Wang and Shuai Bai and Sinan Tan and Tianhang Zhu and Tianhao Li and Tianyu Liu and Wenbin Ge and Xiaodong Deng and Xiaohuan Zhou and Xingzhang Ren and Xinyu Zhang and Xipin Wei and Xuancheng Ren and Yang Fan and Yang Yao and Yichang Zhang and Yu Wan and Yunfei Chu and Yuqiong Liu and Zeyu Cui and Zhenru Zhang and Zhihao Fan}, journal={arXiv preprint arXiv:2407.10671}, year={2024} }
4. Allegro/BiDi-eng-pol β Allegro ML Research
Authors:
- MLR @ Allegro: Artur Kot, MikoΕaj Koszowski, Wojciech Chojnowski, Mieszko Rutkowski
- Laniqo.com: Artur Nowakowski, Kamil Guttmann, MikoΕaj Pokrywka
π Attributions
This project would not be possible without the amazing work of the open-source community.
Special thanks to the teams and organizations that created and maintain the following models and tools:
- OpenAI for Whisper Small (English) β Licensed under Apache License 2.0.
- Systran / Faster Whisper for Faster Whisper Small (English) β a CTranslate2-converted version of OpenAI Whisper Small, optimized for fast CPU/GPU inference.
Licensed under MIT and Apache 2.0 (original model) - Hexgrad for
Kokoro-82M β
a lightweight neural Text-to-Speech model with streaming audio generation.
Licensed under the Apache License 2.0. - Qwen Team for Qwen/Qwen2.5-1.5B-Instruct β Licensed under Apache License 2.0.
- Allegro ML Research for BiDi-eng-pol β Licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
This application uses these models for educational and research purposes only, in full compliance with their respective licenses.
All rights, trademarks, and credits belong to their original creators.