Compare commits
No commits in common. "a41a7f723092bb6ef88d3acd48f0c3eaf1dfea51" and "db2421deff92fd45eb9a8b5471792aabc7a24897" have entirely different histories.
a41a7f7230
...
db2421deff
@ -31,7 +31,6 @@ def float32array_to_wav(samples, sample_rate=16000, num_channels=1):
|
|||||||
byte_rate, block_align, 32, b'data', num_samples * 4
|
byte_rate, block_align, 32, b'data', num_samples * 4
|
||||||
)
|
)
|
||||||
|
|
||||||
info(f'float32array_to_wav({samples[:10]}, ...)')
|
|
||||||
# Convert the Float32Array to bytes
|
# Convert the Float32Array to bytes
|
||||||
data = struct.pack('f' * num_samples, *samples)
|
data = struct.pack('f' * num_samples, *samples)
|
||||||
|
|
||||||
@ -44,6 +43,7 @@ def float32array_to_wav(samples, sample_rate=16000, num_channels=1):
|
|||||||
|
|
||||||
async def generate(request, **kw):
|
async def generate(request, **kw):
|
||||||
params_kw = kw.get('params_kw', DictObject())
|
params_kw = kw.get('params_kw', DictObject())
|
||||||
|
info(f'{params_kw=}')
|
||||||
model = params_kw.model
|
model = params_kw.model
|
||||||
audio = params_kw.audio
|
audio = params_kw.audio
|
||||||
if audio is None:
|
if audio is None:
|
||||||
|
Loading…
Reference in New Issue
Block a user