Forums

    4 posts

  • avatar
    0 sounds
    1 post
    Search by Sound Name


    Hi

    I have been struggling to search and download a list of sound names that I have retrieved from Freesound.
    I am using the following code in Python:

    keyword= "filename"
    results_pager = client.text_search( query=keyword,
    filter="original_filename:"+keyword,
    sort="score",
    fields="id,name,previews,username" )

    print("Num results:", results_pager.count)
    for sound in results_pager:
    print (sound.name)

    But for some reason it isn't working for all sound names and retrieves nothing or wrong results.

    Help!

  • avatar
    88 sounds
    90 posts


    I don't understand code, so this might be completely off mark, but I don't think you can use code to search for sounds, as hard as it seems, you may just have to manually search through the results of a regular query.

    Sorry I can't be more helpful.

    -Sincerely

    FiveBrosStopMosYT

    Its noise declares His presence; Job 36:33 A
  • avatar
    329 sounds
    2985 posts


    FiveBrosStopMosYT wrote:
    I don't think you can use code to search for sounds

    Hey, I thought you'd like to know that with the API (Application Programming Interface) you are writing code that communicates with the Freesound server to send instructions and retrieve specified data. This is really simplified but you get the idea. People use the API to write their own applications that "talk" with Freesound.

    https://freesound.org/help/developers/


    I am the thing that goes bump in the night...

    Freesound Housekeeper
  • avatar
    88 sounds
    90 posts


    Oh, ok. Thanks. smile

    -Sincerely

    FiveBrosStopMosYT

    Its noise declares His presence; Job 36:33 A

    4 posts