{"repo":"transformrs/ata","free":true,"listed":false,"github":"https://github.com/transformrs/ata","clone":"git clone https://github.com/transformrs/ata.git","description":"Ask the Terminal Anything (ATA): ChatGPT in the terminal","language":"Rust","stars":285,"topics":["openai","openai-api","productivity","terminal-based"],"license":"MIT","category":"cli-tools","readme_excerpt":"trf : Multimodal AI in the terminal Supports OpenAI, DeepInfra, Google, Hyperbolic, and others Examples - Chat - Text to Speech Chat in Bash We can chat straight from the command line. For example, via the DeepInfra API: This defaults to the meta-llama/Llama-3.3-70B-Instruct model. We can also create a Bash script to provide some default settings to the chat. For example, create a file called chat.sh with the following content: and add it to your PATH. Now, we can use it like this: Or we can run a spellcheck on a file: Here is a more complex example. For example, create a file called writing-tips.sh with the following content: Text to Speech in Bash We can read a file out loud from the command line. For example, with the OpenAI API: Here, we set the key, print the file myfile.txt to stdout, pipe it to trf to generate mp3 audio, and pipe that to vlc to play it. The --intf dummy is optional; it just prevents vlc from opening a GUI. One way to make this easier to use is to create a Bash script that sets the environment variable and runs the command. For example, create a file called spk.sh (abbreviation for \"speak\") with the following content: After adding spk.sh to your PATH, you can use it like this: Other Text to Speech Commands Philosophy The philosophy of this project is mainly to not handle state. Like curl or ffmpeg, this should make it easier to use in scripts and to share examples online. Settings are done via command line arguments and environment variables.","default_branch":null,"files":null,"tree":[],"storefront":"/r/transformrs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/transformrs/ata/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}