Skip to content

KasunThushara/reTerminal-AIGC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Reterminal-AICG

AI content Generation -News enhancer

  1. Initialize API keys and libraries (NewsAPI, OpenAI, pygame, etc.).

2.Define functions for speech recognition, extracting country and category from recognized text, retrieving news, generating enhanced news bullets from GPT-3.5 model, and creating the news ticker animation using Tkinter.

  1. Create the Tkinter window and add labels and buttons for user interaction.

  2. When the “Recognize” button is clicked, the Speech recognition function is called, disabling the button and starting the speech recognition process in the background.

  3. The background thread continuously reads audio input from the microphone, performs speech recognition, and updates the GUI label to indicate the recognition status.

  4. If the speech is recognized successfully and contains valid country and category information, the application fetches news articles using the NewsAPI and generates enhanced text using the GPT-3.5 model.

  5. The generated speech is played using pygame, and the news content is displayed in a news ticker animation on the Tkinter window.

  6. The animation loops, moving the news content from right to left until the entire text is displayed.

  7. The user can speak again to trigger another speech recognition process.

https://www.seeedstudio.com/blog/2023/07/21/exploring-the-fusion-of-ai-and-raspberry-pi-powered-reterminal-for-smarter-content-creation/

About

AI content Generation -News enhancer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages