8000 GitHub - hmmhmmhm/ten-framework at v0.3.0-rc1 · GitHub
[go: up one dir, main page]

Skip to content
  • About

    Open-source framework for conversational voice AI agents

    Resources

    Stars

    0 stars

    Watchers

    0 watching

    Forks

    Repository files navigation

    Follow on X Discussion posts Commits Issues closed PRs Welcome GitHub license

    Discord TEN Community

    GitHub watchers GitHub forks GitHub stars

    README in English 简体中文 日本語

    Documentation   •   Getting Started   •   Tutorials


    Voice agent: Astra

    Voice agent: Astra

    Astra is a voice agent, powered by TEN, demonstrating its ability to create intuitive and seamless conversational interactions.

    Showcase Astra

    How to build voice agent locally

    Prerequisites

    Keys

    Installation

    Minimum system requirements

    • CPU >= 2 Core
    • RAM >= 4 GB

    Docker setting on Apple Silicon

    You will need to uncheck "Use Rosetta for x86_64/amd64 emulation on Apple Silicon" option for Docker if you are on Apple Silicon, otherwise the server is not going to work.

    Docker Setting

    Next step

    1. Modify config files

    In the root of the project, create these files from the examples. They will be used to store information for Docker Compose later.

    # Create .env from the example
    cp ./.env.example ./.env
    
    # Create property.json from the example
    cp ./agents/property.json.example ./agents/property.json

    2. Setup API keys

    Open the .env file and fill in the keys and regions. This is also where you can choose to use any different extensions:

    # Agora App ID and Agora App Certificate
    # required: this variable must be set
    AGORA_APP_ID=
    AGORA_APP_CERTIFICATE=
    
    # Extension: agora_rtc
    # Azure STT key and region
    AZURE_STT_KEY=
    AZURE_STT_REGION=
    
    # Extension: azure_tts
    # Azure TTS key and region
    AZURE_TTS_KEY=
    AZURE_TTS_REGION=
    
    # Extension: openai_chatgpt
    # OpenAI API key
    OPENAI_API_KEY=
    

    3. Start agent development containers

    In the same directory, run the docker command to compose containers:

    # Execute docker compose up to start the services
    docker compose up

    4. Build agent and start server

    Open up a separate terminal window, build the agent and start the server:

    # Enter container to build agent
    docker exec -it astra_agents_dev bash
    make build
    
    # Once the build is done, run server on port 8080
    make run-server

    Finish and verify 🎉

    Astra voice agent

    Open up localhost:3000 in browser to test Astra voice agent.

    Graph designer

    Open up another tab go to localhost:3001, and use graph designer to edit the flow and properties of any extensions.

    TEN Graph Designer


    TEN Platform

    Now that you’ve created your first AI agent, the creativity doesn't stop here. To develop more amazing agents, you’ll need an advanced understanding of how the TEN service works under the hood. Please refer to the TEN platform documentation .


    Stay Tuned

    Before we dive further, be sure to star our repository and get instant notifications for all new releases!

    TEN star us gif


    Join Community


    Code Contributors

    TEN


    Contribution Guidelines

    Contributions are welcome! Please read the contribution guidelines first.


    License

    This project is licensed under the Apache 2.0 License - see the LICENSE file for details.

    About

    Open-source framework for conversational voice AI agents

    Resources

    Stars

    0 stars

    Watchers

    0 watching

    Forks

    Releases

    Packages

    Contributors

    Languages

    0