Skip to main content

A Streamlit custom component that provides a chat window with voice capabilities for conversation handling

Project description

AI Voice LLM Chat

A Streamlit custom component that provides a chat window with voice capabilities for conversation handling.

Features

  • Voice-activated chat interface
  • Face recognition capabilities
  • Customizable conversation handling
  • React-based frontend with TypeScript
  • Integration with custom APIs for voice processing

Installation

pip install stefan-ai-voice-chat

Usage

import streamlit as st
from custom_voiceGPT import custom_voiceGPT, VoiceGPT_options_builder

# Create options
to_builder = VoiceGPT_options_builder.create()
to = to_builder.build()

import os
import streamlit as st
from custom_voiceGPT import custom_voiceGPT, VoiceGPT_options_builder

# Create options
to_builder = VoiceGPT_options_builder.create()
to = to_builder.build()

# Example usage of custom_voiceGPT
custom_voiceGPT(
    api=f"{st.session_state['ip_address']}/api/data/voiceGPT",
    api_key=os.environ.get('ozz_key'),
    client_user=st.session_state['client_user'],
    self_image="hootsAndHootie.png",
    width=350,
    height=350,
    key='hootsAndHootie.png True',
    hello_audio="test_audio.mp3",
    face_recon=True,
    show_video=True,
    input_text=True,
    show_conversation=True,
    no_response_time=3,
    refresh_ask={},
    force_db_root=True if 'force_db_root' in st.session_state and st.session_state['force_db_root'] else False,
    before_trigger={'how are you': 'hoots_waves__272.mp3', 'phrases': []},
    api_audio=f"{st.session_state['ip_address']}/api/data/",
    agent_actions=["Generate A Summary", "Create a Story"],
    commands=[
        {
            "keywords": [],
            "api_body": {"keyword": "hey hoots"},
        },
        {
            "keywords": ["bye Hoots"],
            "api_body": {"keyword": "bye hoots"},
        }
    ],
    datatree={},
    datatree_title="",
    answers=[],
    initialFinalTranscript=None,
)

## Development

This project consists of:
- Python backend using Streamlit
- React/TypeScript frontend
- Face recognition using face-api.js

### Requirements

- Python >= 3.7
- Streamlit >= 1.0.0
- Node.js (for frontend development)

## License

MIT License

## Author

Stefan Stapinski

## Contributing

1. Fork the repository
2. Create a feature branch
3. Make your changes
4. Submit a pull request

## Repository

https://github.com/nafets33/ai_voice_chat

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

streamlit_ai_voice_chat-0.1.0.tar.gz (13.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

streamlit_ai_voice_chat-0.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file streamlit_ai_voice_chat-0.1.0.tar.gz.

File metadata

  • Download URL: streamlit_ai_voice_chat-0.1.0.tar.gz
  • Upload date:
  • Size: 13.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.9

File hashes

Hashes for streamlit_ai_voice_chat-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ef1c41ae808bbd3cc3dc11086b145957b47818d79de2151f5c14460c978ff776
MD5 01463c6cb98661ed90de419d1f40ba1e
BLAKE2b-256 13fb937ec3aba8edfddddcf73661f9ecbbc748a5d3f8ef0f703bf96c12a19815

See more details on using hashes here.

File details

Details for the file streamlit_ai_voice_chat-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_ai_voice_chat-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60a05cc967118258704641948a9d3b67a2708573bae9ef6797775b70bac66929
MD5 07faea985efcb59aa31da9dcd0dfa261
BLAKE2b-256 e7adfe3328c9ceae468993bdedd721cdd3c6dc57610703f28bd7b3f97d83257b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page