---
title: "init(url:)"
framework: speech
role: symbol
role_heading: Initializer
path: "speech/sfspeechurlrecognitionrequest/init(url:)-3ymmz"
---

# init(url:)

Creates a speech recognition request, initialized with the specified URL.

## Declaration

```swift
init(url URL: URL)
```

## Discussion

Discussion Use this method to create a request to recognize speech in a recorded audio file that resides at the specified URL. Pass the request to the recognizer’s recognitionTask(with:delegate:) method to start recognition.
