You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ffmpeg-convert-audio/README.md
+8-11Lines changed: 8 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,25 +10,22 @@ The audio conversion is performed using ffmpeg. The audio is first downloaded lo
10
10
11
11
The dependencies are listed in [functions/package.json](functions/package.json).
12
12
13
-
14
13
## Trigger rules
15
14
16
15
The function triggers on upload of any file to your Firebase project's default Cloud Storage bucket.
17
16
18
-
19
17
## Deploy and test
20
18
21
19
To deploy and test the sample:
22
20
23
-
- Create a Firebase project on the [Firebase Console](https://console.firebase.google.com) and visit the **Storage** tab.
24
-
- Get the code, for instance using `git clone https://github.com/firebase/functions-samples`
25
-
- Enter the correct directory `cd functions-samples/ffmpeg-convert-audio`
26
-
- Setup the CLI to use your Firebase project using `firebase use --add` and select your Firebase project
27
-
- Deploy your project's code using `firebase deploy`
28
-
- Go to the Firebase Console **Storage** tab and upload an audio. After a short time a converted audio with the same name but a `_output.flac` suffix will be created in the same folder (make sure you refresh the UI to see the new file).
21
+
- Create a Firebase project on the [Firebase Console](https://console.firebase.google.com) and visit the **Storage** tab.
22
+
- Get the code, for instance using `git clone https://github.com/firebase/functions-samples`
23
+
- Enter the correct directory `cd functions-samples/ffmpeg-convert-audio`
24
+
- Setup the CLI to use your Firebase project using `firebase use --add` and select your Firebase project
25
+
- Deploy your project's code using `firebase deploy`
26
+
- Go to the Firebase Console **Storage** tab and upload an audio. After a short time a converted audio with the same name but a `_output.flac` suffix will be created in the same folder (make sure you refresh the UI to see the new file).
29
27
30
28
## Notes
31
29
32
-
- Take into account that the audio files produced should not exceed the size of the memory of your function.
33
-
- The audio conversion could take a certain amount of time, increase the timeout of your function using the cloud functions webgui so the function can run for a longer time.
34
-
30
+
- Take into account that the audio files produced should not exceed the size of the memory of your function.
31
+
- The audio conversion could take a certain amount of time, increase the timeout of your function using the cloud functions webgui so the function can run for a longer time.
0 commit comments