Better silence management/encoding

... so output wav can be easily previewed on various platforms and easily compressed to mp3/webm
https://github.com/suno-ai/bark/issues/288
pull/305/head
SALES 2023-05-18 09:58:58 +11:00 committed by GitHub
parent 2d9eded792
commit ecaec48b64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@
"source": [
"GEN_TEMP = 0.6\n",
"SPEAKER = \"v2/en_speaker_6\"\n",
"silence = np.zeros(int(0.25 * SAMPLE_RATE)) # quarter second of silence\n",
"silence = np.zeros(int(0.25 * SAMPLE_RATE), dtype=np.int16 ) # quarter second of silence\n",
"\n",
"pieces = []\n",
"for sentence in sentences:\n",