Skip to content

error #1

Description

@Quantum-MIT

It says cannot find loadsound in scope and says found an unexpected second identifier.
On running the given swift code, it gives :
/Users/mitadrudatta/AudioFeature/AudioFeature/mfc.swift:2:10: error: found an unexpected second identifier in constant declaration; is there an accidental break?
let mfcc Mfcc()
^
/Users/mitadrudatta/AudioFeature/AudioFeature/mfc.swift:2:10: note: join the identifiers together
let mfcc Mfcc()
~~~~~^~~~
mfccMfcc
/Users/mitadrudatta/AudioFeature/AudioFeature/mfc.swift:2:14: error: consecutive statements on a line must be separated by ';'
let mfcc Mfcc()
^
;
/Users/mitadrudatta/AudioFeature/AudioFeature/mfc.swift:2:14: error: expected expression after unary operator
let mfcc Mfcc()
^
/Users/mitadrudatta/AudioFeature/AudioFeature/mfc.swift:1:18: error: cannot find 'loadSound' in scope
let input = try! loadSound("/Users/mitadrudatta/Desktop/diarize/Resemblyzer/WhatsApp Ptt 2023-07-05 at 10.53.32.wav", as: Double.self)
^~~~~~~~~
/Users/mitadrudatta/AudioFeature/AudioFeature/mfc.swift:2:5: error: type annotation missing in pattern
let mfcc Mfcc()
^
/Users/mitadrudatta/AudioFeature/AudioFeature/mfc.swift:2:14: error: '<' is not a prefix unary operator
let mfcc Mfcc()

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions