How to access files in outside of bin folder in ASP.NET Core?

I am developing a web app in ASP.net Core MVC and am trying to access a TempFile in a folder called TempFile within my project.

MyWebAPP:.
├───TempFiles
     ├─── file.wav

However I cannot access that file, even tho it exists, through JavaScript, like this:

const connection = new signalR.HubConnectionBuilder().withUrl("/SandboxHub").build();

// Start the SignalR connection
connection.start().catch(err => console.error(err));

// Handle textbox change event
$("#sentence-input").on("input", async function () {
    // Get the sentence value
    const sentence = $(this).val();

    // Send the sentence to the Hub
    await connection.invoke("TransformIntoTTS", sentence);

    connection.on("ReceiveFile", function (fileUrl) {
        const relativeFilePath = fileUrl.replace("/LearningWithAI-WebLayer", "");


        // Apply the file URL to the source of the audio controller
        $("#audio-player").attr("src", "../" + relativeFilePath);

    });
});