Skip to main content

No project description provided

Project description

AIwaifuVTSController

VTS Plugin for AIwaifu using python to

  • Voice Buffer as input for VTS Lip Sync
  • Expression/Animation Control API

Usage

import asyncio
from waifu_vts_controller import VTSController

async def main():
    phoneme_paths = {
        "a": "./local/mels/0_a.mp3",
        "i": "./local/mels/1_i.mp3",
        "u": "./local/mels/2_u.mp3",
        "e": "./local/mels/3_e.mp3",
        "o": "./local/mels/4_o.mp3",
        "n": "./local/mels/5_n.mp3"
    }

    plugin_info = {
        "plugin_name": "AIWaifuController",
        "developer": "HRNPH",
        "authentication_token_path": "./token.txt",
    }
    
    audio_file_path = "./local/samples/0_rachel.mp3"

    # Create the VTSController instance
    controller = VTSController(plugin_info=plugin_info)
    await controller.connect()
    
    await controller.audio_controller.play_audio_with_mouth_movement(audio_file_path, phoneme_paths)
    

if __name__ == "__main__":
    asyncio.run(main())

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

aiwaifu_vts_controller-1.0.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

aiwaifu_vts_controller-1.0.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file aiwaifu_vts_controller-1.0.0.tar.gz.

File metadata

  • Download URL: aiwaifu_vts_controller-1.0.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.6 Darwin/23.4.0

File hashes

Hashes for aiwaifu_vts_controller-1.0.0.tar.gz
Algorithm Hash digest
SHA256 908db35db90de219e08d73749476152e76d2d413b41b8d9235e99b88361fc0c6
MD5 c012890748360d2f69b1e39bb9aa81be
BLAKE2b-256 cc38a1cd769fdc171499c2c6a93124301fa83a13c1754e698f90e641562ab04f

See more details on using hashes here.

File details

Details for the file aiwaifu_vts_controller-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aiwaifu_vts_controller-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 37c61dacc1aff0734e1a32f36d871cb22be9c52de2455aeb2feb33fa0f666277
MD5 8de5dd33522417de1993525d06a43abc
BLAKE2b-256 1164b044883bea1e955459dfe6fbbd934606df322f5eb7b4c678c497e5c24d6a

See more details on using hashes here.

Supported by

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