Skip to main content

Generate

Project description

simple_talking_anime_avatar

Simple python package to generate talking anime avatar video.

Talking avatar example

Installation

pip install simple_talking_anime_avatar

Usage

Here is how to use this package to generate an image of a woman pronuncing the letter 'u'

import cv2

from src.simple_talking_anime_avatar.avatar_gen import get_image_speaking

image_avatar_speaking_u = get_image_speaking("u")
cv2.imwrite("speaking_avatar_u.png", image_avatar_speaking_u)

This will generate an image looking something like this:

Pronuncing u

Here is how to generate the video at the top using the library pyttsx3. Note that pyttsx3 works differently on different systems. There is also other packages for generating speech from text.


import pyttsx3

from src.simple_talking_anime_avatar.speech_to_vid import get_speaker_video

engine = pyttsx3.init()
voices = engine.getProperty("voices")

engine.setProperty("rate", 110)

engine.setProperty("voice", "com.apple.voice.compact.en-AU.Karen")

engine.say("Hello everyone! This is a test of speaking avatar python package.")
engine.save_to_file(
    "Hello everyone! This is a test of speaking avatar python package.", "test.wav"
)
engine.runAndWait()

get_speaker_video("test.mp4", "test.wav", 30)

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

simple_talking_anime_avatar-0.0.5.tar.gz (2.7 MB view details)

Uploaded Source

Built Distribution

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

simple_talking_anime_avatar-0.0.5-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file simple_talking_anime_avatar-0.0.5.tar.gz.

File metadata

File hashes

Hashes for simple_talking_anime_avatar-0.0.5.tar.gz
Algorithm Hash digest
SHA256 7b5bca1bd1192c17b0feff8e4412b2b68d3da90a7dc2a8dcf69d33fa6b50df7e
MD5 c7911ec513bdc7d7f6e8d1cecdc2d710
BLAKE2b-256 695b866c67bd4f3e4fdea9fe64449ed724eee0e7b689c5b98ab3b919e384e6bb

See more details on using hashes here.

File details

Details for the file simple_talking_anime_avatar-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_talking_anime_avatar-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a3c4b10354c31aeb6f022744f9e0eacd0e2395f1db40620d96ae67648bcbc13a
MD5 ae0b1a3189affb1b6ced675739102b76
BLAKE2b-256 6b2fcdf6a02ea1588cbf47f9d1d1676dd0775c93f683c6d62c4570687d31e767

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