File size: 513 Bytes
91394e0
 
 
 
 
 
 
 
780954b
91394e0
 
 
 
 
 
f1b8d35
 
91394e0
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from abc import ABC, abstractmethod

import numpy as np


class AbstractSVSModel(ABC):
    @abstractmethod
    def __init__(
        self, model_id: str, device: str = "auto", cache_dir: str = "cache", **kwargs
    ): ...

    @abstractmethod
    def synthesize(
        self,
        score: list[tuple[float, float, str, int]],
        language: str,
        speaker: str,
        **kwargs,
    ) -> tuple[np.ndarray, int]:
        """
        Synthesize singing audio from music score.
        """
        pass