Skip to content

Instantly share code, notes, and snippets.

@kun432
Last active August 17, 2023 16:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kun432/13e4f63e4b7a9c3d4034f42c8a18374b to your computer and use it in GitHub Desktop.
Save kun432/13e4f63e4b7a9c3d4034f42c8a18374b to your computer and use it in GitHub Desktop.
clone_voice.ipynb
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@edgenull
Copy link

edgenull commented May 1, 2023

Was training my voice but:

---------------------------------------------------------------------------

FileNotFoundError                         Traceback (most recent call last)

[<ipython-input-7-a50bd504d688>](https://localhost:8080/#) in <cell line: 39>()
     37 voice_name = 'ja_speaker_9' # whatever you want the name of the voice to be
     38 output_path = '/usr/local/lib/python3.9/dist-packages/bark/assets/prompts/' + voice_name + '.npz'
---> 39 np.savez(output_path, fine_prompt=codes, coarse_prompt=codes[:2, :], semantic_prompt=semantic_tokens)

4 frames

/usr/local/lib/python3.10/dist-packages/numpy/core/overrides.py in savez(*args, **kwargs)

[/usr/local/lib/python3.10/dist-packages/numpy/lib/npyio.py](https://localhost:8080/#) in savez(file, *args, **kwds)
    610 
    611     """
--> 612     _savez(file, args, kwds, False)
    613 
    614 

[/usr/local/lib/python3.10/dist-packages/numpy/lib/npyio.py](https://localhost:8080/#) in _savez(file, args, kwds, compress, allow_pickle, pickle_kwargs)
    707         compression = zipfile.ZIP_STORED
    708 
--> 709     zipf = zipfile_factory(file, mode="w", compression=compression)
    710 
    711     for key, val in namedict.items():

[/usr/local/lib/python3.10/dist-packages/numpy/lib/npyio.py](https://localhost:8080/#) in zipfile_factory(file, *args, **kwargs)
     99     import zipfile
    100     kwargs['allowZip64'] = True
--> 101     return zipfile.ZipFile(file, *args, **kwargs)
    102 
    103 

[/usr/lib/python3.10/zipfile.py](https://localhost:8080/#) in __init__(self, file, mode, compression, allowZip64, compresslevel, strict_timestamps)
   1249             while True:
   1250                 try:
-> 1251                     self.fp = io.open(file, filemode)
   1252                 except OSError:
   1253                     if filemode in modeDict:

FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.9/dist-packages/bark/assets/prompts/ja_speaker_9.npz'

@inki53
Copy link

inki53 commented May 4, 2023

Same error here

@kun432
Copy link
Author

kun432 commented May 7, 2023

colaboratory seems change python version from 3.9 to 3.10. fixed.

@revolutionarybukhari
Copy link

not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment