Giter Club home page Giter Club logo

soundfingerprinting.sql's People

Contributors

addictedcs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

soundfingerprinting.sql's Issues

Missing SQL Parameter

When I try to test the app using MS SQL persistent storage I get the following error.
Procedure or function 'sp_InsertTrack' expects parameter '@TrackLengthSec', which was not supplied.

Getting System.InvalidCastException in model binder

Hi,

I'm getting System.InvalidCastException in Modelbinder.cs.

I hve ran DBScript.sql and it created 3 tables.

Can anyone please help.

Exeception redirected to
public TModel BindReader(IReader reader, Func<TModel> modelFactory) { TModel model = modelFactory(); readerAction(reader, model); return model; }

An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll

Downloaded from Nuget packages

The error

Additional information: Procedure or function 'sp_InsertTrack' expects parameter '@TrackLengthSec', which was not supplied.

Here my entire code that gives the error

List<string> lstMp3Files = new List<string> {
                @"D:\15_muzikler\00 UK Top 40 Singles Charts\UK Top 40 Singles Chart 2017-01-21\Clean Bandit - Rockabye ft. Sean Paul & Anne-Marie [Official Video].mp3",
                @"D:\15_muzikler\00 UK Top 40 Singles Charts\UK Top 40 Singles Chart 2017-01-21\JP Cooper - September Song.mp3",
                @"C:\Clean Bandit - Rockabye ft. Sean Paul & Anne-Marie [Official Video].mp3"
            };

            int irLoop = 1;

            foreach (var item in lstMp3Files)
            {
                var track1 = new TrackData("track" + irLoop, "track" + irLoop, "track" + irLoop, "track" + irLoop, 2017, 215);
                // store track metadata in the datasource
                var trackReference = modelService.InsertTrack(track1);

                // create hashed fingerprints
                var hashedFingerprints = fingerprintCommandBuilder
                                            .BuildFingerprintCommand()
                                            .From(item)
                                            .UsingServices(audioService)
                                            .Hash()
                                            .Result;

                // store hashes in the database for later retrieval
                modelService.InsertHashDataForTrack(hashedFingerprints, trackReference);
                irLoop++;
            }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.