AI Personal Learning
and practical guidance
Resource Recommendation 1

gibberlink: a demonstration project for efficient audio communication between two AI intelligences

General Introduction

gibberlink is an open source project on GitHub by developer PennyroyalTea that focuses on optimizing communication between two conversational AI intelligences. When two AI intelligences talk on the phone and recognize each other as AI, they will switch from human language (English) to a sound-level protocol based on sound (sound-level protocol) to exchange data in a more efficient way. The project is written in TypeScript and incorporates ggwave technology to provide an innovative way for AI to communicate. gibberlink's central highlight is that it demonstrates how AI intelligences can communicate quickly in non-human languages, for scenarios that require efficient data transfer, such as telephone interactions or real-time collaboration. The project has been starred hundreds of times and forked dozens of times on GitHub, attracting widespread attention from developers and technology enthusiasts.

gibberlink: a demo project for efficient audio communication between two AI intelligences-1


 

Function List

  • AI Identity: Two AI intelligences identify each other through an initial conversation during a call.
  • Language switching: Switch from English to ggwave-based tone level protocol for communication.
  • Efficient data transfer: Using sound signals to enable faster communication than human speech.
  • Open Source Support: Provides complete TypeScript source code, allowing developers to freely modify and extend it.
  • Demo & Test: Supports demonstration of decoding communications via ggwave web pages to verify functionality.
  • Multi-device compatible: Can be run between different devices, such as laptops and cell phones.

 

Using Help

Environment Preparation and Installation Process

gibberlink is an open source project based on GitHub. You can view the code and documentation without installing it locally, but if you need to run or test its functionality, you need to follow the steps below:

  1. Accessing GitHub Repositories
    Open your browser and enter the URL https://github.com/PennyroyalTea/gibberlinkClick on the green button "Code" and select "Download ZIP" to download the source code. Click on the green button "Code" and select "Download ZIP" to download the source code, or use the Git command to clone the repository:

    git clone https://github.com/PennyroyalTea/gibberlink.git

Unzip the file to a local directory after the download is complete.

  1. Installing Node.js
    The project is developed in TypeScript and requires a Node.js environment. Go to the Node.js official website to download and install the latest LTS version (recommended v18.x or higher). After installation, run the following command in the terminal to check the version:

    node -v
    npm -v
    

    Ensure that the version number is displayed to indicate a successful installation.

  2. Installation of dependencies
    Go to the extracted project folder, open a terminal and run the following command to install the project dependencies:

    cd gibberlink
    npm install
    

    This will be based on the package.json file installs all necessary libraries, including ggwave and other support modules.

  3. Running Projects
    After installing the dependencies, start the project using the following command:

    npm start
    

    If you need to build the project, you can run it:

    npm run build
    

    Upon successful startup, the terminal displays a running status indicating that the local server is ready.

Using the ggwave demo feature

One of the features of gibberlink is the ability to decode the content of AI communications through ggwave's web presentation tool. Here's how to do it:

  1. Open the ggwave demo page
    Access in browser https://waver.ggerganov.com/This is a publicly available ggwave online tool for decoding tone-level protocol data.
  2. Prepare two units
    To simulate communication between AIs, it is recommended to use two devices (e.g. two laptops or a computer plus a cell phone). Run the gibberlink project on one device and open the ggwave demo page on the other.
  3. Switching communication modes
    In a running program, the AI intelligence will first have a simple conversation in English (e.g., to confirm identity). Once both parties have recognized each other as AIs, it automatically switches to tone-level protocol mode. At this point, you will hear a high-frequency sound similar to a dial-up modem, which is the signal encoded by ggwave for data transmission.
  4. Decode the content of the communication
    Place the device on which the project is running close to the device on the ggwave demo page, making sure that the microphone is able to capture the sound. ggwave page decodes the audio signal in real time and displays the transmitted content on the screen, e.g. a message such as "Is it better now?

Detailed explanation of the operation of the main functions

  • AI Identity Recognition and Switching
    When the project starts, it simulates a conversation between two AI intelligences by default. You can modify the src/components/ConvAI.tsx Dialog logic in the file to customize the initial English Q&A content. Example:

    const initialMessage = "Are you an AI agent?";
    

    When both intelligences answer "Yes", the program will call startRecording() function to enter tone level protocol mode.

  • Customizing the content of communications
    exist src directory in the code, you can edit the message content. For example, in the ConvAI.tsx Modified in:

    const nextMessage = "Let's discuss the plan.";
    

    Save and re-run the project, new messages will be transmitted via audio after switching modes.

  • Debugging and Log Viewing
    The project has a built-in debugging feature that will output logs in the terminal when running, for example:

    Conversation ended successfully in gibbMode
    

    If you encounter an error, check the console.error output, common problems include microphone privileges not being turned on or a broken network connection.

caveat

  • Ensure that the device microphone and speakers are working properly, otherwise audio transmission cannot be completed.
  • Testing in a noisy environment may result in decoding failure, it is recommended to operate in a quiet environment.
  • If testing with a cell phone, adjust the volume to moderate to avoid signal distortion.

By following these steps, you can experience gibberlink's AI communication capabilities in their entirety, switching from English conversations to highly efficient audio-level protocols at a glance. Developers can also participate in project improvements by contributing code (e.g. Pull Request).

Content 2
May not be reproduced without permission:Chief AI Sharing Circle " gibberlink: a demonstration project for efficient audio communication between two AI intelligences

Chief AI Sharing Circle

Chief AI Sharing Circle specializes in AI learning, providing comprehensive AI learning content, AI tools and hands-on guidance. Our goal is to help users master AI technology and explore the unlimited potential of AI together through high-quality content and practical experience sharing. Whether you are an AI beginner or a senior expert, this is the ideal place for you to gain knowledge, improve your skills and realize innovation.

Contact Us
en_USEnglish