Coder Social home page Coder Social logo

timrec's Introduction

TIMRec

通过监听文件变化并替换相应文件达到发送指定录音的效果。

为 TIM 打造,原理上同样适用于 QQ。

详情请查看我的Blog

Install

1.安装 TermuxTermux:API

2.打开 Termux 并安装必要软件包

pkg install python3,git,termux-api
git clone https://github.com/senventise/TIMRec.git
cd TIMRec

3.配置

新建config.py

dialog = "radio" # radio/sheet
path = ""

dialog为dialog样式,path为 TIM 的录音存放目录,通常为/sdcard/tencent/Tim/{你的QQ号}/ptt

amr 目录下放上你想要替换的录音文件(必须转换为为 amr 格式)

Usage

运行程序

python TIMRec.py

打开 TIM ,选择录音功能,点击录音,过2-3秒后停止录音,此时会弹出dialog,根据提示操作,然后点击发送。

Screenshots

Screenshot_20191026-192303

Screenshot_20191026-192311

timrec's People

Contributors

senventise avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.