GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fetching double path from classifier · Issue #2941 · speechbrain/speechbrain

fetching double path from classifier #2941

New issue
Copy link
New issue
Copy link
Open
Open
fetching double path from classifier#2941
Copy link
Labels
bugSomething isn't workingSomething isn't working

Description

@ayan013
ayan013
opened on Jul 2, 2025
Issue body actions

Describe the bug

Code:

classifier = EncoderClassifier.from_hparams(
source="Jzuluaga/accent-id-commonaccent_ecapa",
savedir="pretrained/accent")

def detect_accent(audio_bytes: bytes):
try:
with tempfile.NamedTemporaryFile(suffix=".wav", delete=True) as temp:
temp.write(audio_bytes)
temp.flush()
temp_path = temp.name
print(temp_path,flush=True)
if not os.path.exists(temp_path):
print(f"Temp path does not exist: {temp_path}")
out_prob, score, idx, label = classifier.classify_file(temp_path)
return label, score.item()
except Exception as e:
print(f"Accent detection failed: {e}")

I have been working with classify_file and it's showing double path while processing temp_path but I have checked the output of print(temp_path,flush=True). It's showing single path to .wav file.

I am using PyCharm 2025.1.1.1 and python 3.12. Basically it takes my_project_path + path_of_.wav

Am I missing something?

Expected behaviour

It should only take the path of the .wav file

To Reproduce

No response

Environment Details

No response

Relevant Log Output

Additional Context

No response

Activity

  1. ayan013
    added
    bugSomething isn't workingSomething isn't working
    on Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.