Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
Signed-off-by: ふぁ <[email protected]>
  • Loading branch information
fa0311 committed May 17, 2024
1 parent 26c5c77 commit 6ac6ce1
Showing 1 changed file with 48 additions and 4 deletions.
52 changes: 48 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,64 @@
![](https://img.shields.io/chrome-web-store/stars/hajmblnifbebpjbbepklinmlbillcbni)

Twitter のスペースに参加せずに試し聞きできる Chrome 拡張機能<br>
A Chrome extension for listening in on Twitter Spaces without joining<br>

<img width="50%" src="docs/img/screenshots1.jpg">

Python version: [TwitterSpacesWiretap](https://github.com/fa0311/TwitterSpacesWiretap)<br>

# インストール
## インストール

[ChromeWebStore](https://chrome.google.com/webstore/detail/twitterspaceswiretapexten/hajmblnifbebpjbbepklinmlbillcbni?hl=ja&authuser=0)

もしくは

[releases](https://github.com/fa0311/TwitterSpacesWiretapExtension/releases)_TwitterSpacesWiretapExtension.zip_ を選択してファイルをダウンロード<br>
Chrome の _拡張機能の管理_ を選択して _デベロッパーモード_ を有効にした後、ダウンロードした zip ファイルをページにドラッグしてください<br>
[releases](https://github.com/fa0311/TwitterSpacesWiretapExtension/releases)`TwitterSpacesWiretapExtension.zip` を選択してファイルをダウンロード<br>
Chrome の `拡張機能の管理` を選択して `デベロッパーモード` を有効にした後、`パッケージ化されていない拡張機能を読み込む` を選択してダウンロードした zip ファイルを選択してください。

# License


## Installation

[ChromeWebStore](https://chrome.google.com/webstore/detail/twitterspaceswiretapexten/hajmblnifbebpjbbepklinmlbillcbni?hl=ja&authuser=0)


or

Select TwitterSpacesWiretapExtension.zip from [releases](https://github.com/fa0311/TwitterSpacesWiretapExtension/releases) to download the file. Then, select Manage Extensions in Chrome, enable Developer Mode, and choose Load unpacked extension, then select the downloaded zip file.

## ffmpeg での録音

スペースを開いて `F12` を押して開発者ツールを開きます。

```log
https://xxxxxxxxxxxxx.video.pscp.tv/Transcoding/v1/hls/xxxxxxxxxxxxx/non_transcode/xxxxxxxxxxxxx/xxxxxxxxxxxxx/audio-space/dynamic_playlist.m3u8?type=live
```

上記の URL が表示されるので、この URL をコピーしてください。

```bash
ffmpeg -i https://xxxxxxxxxxxxx.video.pscp.tv/Transcoding/v1/hls/xxxxxxxxxxxxx/non_transcode/xxxxxxxxxxxxx/xxxxxxxxxxxxx/audio-space/dynamic_playlist.m3u8?type=live -c copy output.mp3
```

上記のコマンドを実行すると、スペースの音声が録音されます。

## Recording with ffmpeg

Open the Space and press F12 to open the developer tools.

```log
https://xxxxxxxxxxxxx.video.pscp.tv/Transcoding/v1/hls/xxxxxxxxxxxxx/non_transcode/xxxxxxxxxxxxx/xxxxxxxxxxxxx/audio-space/dynamic_playlist.m3u8?type=live
```

Copy the URL above.

```bash
ffmpeg -i https://xxxxxxxxxxxxx.video.pscp.tv/Transcoding/v1/hls/xxxxxxxxxxxxx/non_transcode/xxxxxxxxxxxxx/xxxxxxxxxxxxx/audio-space/dynamic_playlist.m3u8?type=live -c copy output.mp3
```

Executing the above command will record the audio of the Space.

## License

TwitterSpacesWiretapExtension is under MIT License

0 comments on commit 6ac6ce1

Please sign in to comment.