Giter Club home page Giter Club logo

helikratt-term's Introduction

Helikratt-term

Mida see teeb

Kratt küsib sinult küsimuse, mille saadab OpenAI gpt-3.5-turbo mudelile vastamiseks. Saadud vastus suunatakse edasi TartuNLP kõnesünteesimudelile, kus loeb Mari vastuse ilmekalt .wav faili ja saadab selle sulle tagasi. Viimasena saadud vastus salvestatakse nii teksti kui ka helifaili kujul repo kausta (vastavalt vastus.txt ja vastus.wav).

Kuidas töötab

Krati tööks on vajalik enda registreerimine OpenAI lehel maksvaks kasutajaks ja oma API võtme lisamine .env faili. Õnneks ei maksa antud boti tehtud päringud eriti palju: koodi kirjutamise, testimise ja selle teistele näitamise peale kulus mul kokku 2 dollari senti.

Koodi testisin Fedora 37 peal. Installitud peab olema lisaks Python 3-le ka VLC (audio mängimiseks) ja paar paketti. Teoorias võiks kood töötada ka Windowsil, kui kõik eeldused on täidetud, kuid eraldi ma seda üle kontrollinud pole. Kui helifaili automaatse mängimisega tekib probleeme, siis võib vastava osa koodist lihtsalt välja kommenteerida. Fail ise on juba kaustas olemas ja seda saab ka mistahes muu programmiga järele kuulata.

helikratt-term's People

Contributors

renepiik avatar

Stargazers

Hendrik Parik avatar

Watchers

 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.