DEV Community

GrumpyBud
GrumpyBud

Posted on

How would I add the tts output of this code into Nvidia auidio2face?

In this code:

import json
import pyttsx3
import speech_recognition as sr
class UserProfile:
    def __init__(self, name, age, interests):
        self.name = name
        self.age = age
        self.interests = interests

    def to_dict(self):
        return {"name": self.name, "age": self.age, "interests": self.interests}

    @classmethod
    def from_dict(cls, data):
        return cls(data["name"], data["age"], data["interests"])

    def __str__(self):
        return f"Name: {self.name}, Age:

Top comments (0)