Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to place the speaker's name instead of a number at the end of the saved file name? #930

Open
1 of 5 tasks
hamedredrose007 opened this issue Sep 7, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@hamedredrose007
Copy link

Is your feature request related to a problem? Please describe.

No, it is just a suggestion to separate different files from each other

Describe alternatives you've considered

I have no alternative

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Are you willing to resolve this issue by submitting a Pull Request?

  • Yes, I have the time, and I know how to start.
  • Yes, I have the time, but I don't know how to start. I would need guidance.
  • No, I don't have the time, although I believe I could do it if I had the time...
  • No, I don't have the time and I wouldn't even know how to start.
@hamedredrose007 hamedredrose007 added the enhancement New feature or request label Sep 7, 2023
@34j
Copy link
Collaborator

34j commented Sep 9, 2023

There is no end to what parameters should be included in the file name, so I recommend that you fork this repository and make any changes you like yourself to suit your needs.

@raytopoulos
Copy link

raytopoulos commented Sep 20, 2023

This is easy to implement.
In gui.py
Go to line 63 and add a new parameter to the function named "speaker"
def get_output_path(input_path: Path, speaker) -> Path:
then in line 65 replace .out with .{speaker}
output_path = input_path.parent / f"{input_path.stem}.{speaker}{input_path.suffix}"
Finaly in line 706 add values["speaker"] as a second parameter to the get_output_path() function call
window.Element("output_path").Update(str(get_output_path(input_path,values["speaker"])))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants